Skip to content

Commit

Permalink
bump up Next.js version
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Oct 13, 2023
1 parent e540942 commit 02c399a
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 386 deletions.
17 changes: 7 additions & 10 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
const withTM = require('next-transpile-modules')([
'react-syntax-highlighter',
'swagger-client',
'swagger-ui-react',
]);
const path = require('path');

const withRoutes = require('nextjs-routes/config')({
outDir: 'nextjs',
});
Expand All @@ -13,8 +6,12 @@ const headers = require('./nextjs/headers');
const redirects = require('./nextjs/redirects');
const rewrites = require('./nextjs/rewrites');

const moduleExports = withTM({
include: path.resolve(__dirname, 'icons'),
const moduleExports = {
transpilePackages: [
'react-syntax-highlighter',
'swagger-client',
'swagger-ui-react',
],
reactStrictMode: true,
webpack(config, { webpack }) {
config.plugins.push(
Expand Down Expand Up @@ -46,6 +43,6 @@ const moduleExports = withTM({
// otherwise it is impossible to upload large files (over 1Mb)
bodyParser: false,
},
});
};

module.exports = withRoutes(moduleExports);
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"lodash": "^4.0.0",
"mixpanel-browser": "^2.47.0",
"monaco-editor": "^0.34.1",
"next": "13.4.7",
"next": "13.5.4",
"nextjs-routes": "^1.0.8",
"node-fetch": "^3.2.9",
"papaparse": "^5.3.2",
Expand All @@ -78,7 +78,7 @@
"react-intersection-observer": "^9.5.2",
"react-jazzicon": "^1.0.4",
"react-scroll": "^1.8.7",
"swagger-ui-react": "^5.1.0",
"swagger-ui-react": "^5.9.0",
"use-font-face-observer": "^1.2.1",
"viem": "^1.1.8",
"wagmi": "^1.3.3",
Expand Down Expand Up @@ -123,7 +123,6 @@
"jest-fetch-mock": "^3.0.3",
"lint-staged": ">=10",
"mockdate": "^3.0.5",
"next-transpile-modules": "^10.0.0",
"style-loader": "^3.3.1",
"svgo": "^2.8.0",
"ts-jest": "^29.0.3",
Expand Down
Loading

0 comments on commit 02c399a

Please sign in to comment.