Skip to content

Commit

Permalink
bump up Next.js version (#1290)
Browse files Browse the repository at this point in the history
* bump up Next.js version

* [skip ci] fix release workflow for hotfix tag
  • Loading branch information
tom2drum authored Oct 13, 2023
1 parent 0c8cf87 commit 40463c8
Show file tree
Hide file tree
Showing 4 changed files with 398 additions and 386 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
state: 'all'
});
if (issues.length === 0) {
core.notice(`No issues with label "${ process.env.LABEL_NAME }" found.`);
return;
}

const issueIds = issues.map(({ node_id }) => node_id);
const labelId = issues[0].labels.find(({ name }) => name === process.env.LABEL_NAME).node_id;

Expand Down
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 40463c8

Please sign in to comment.