Commit 40463c80 authored by tom goriunov's avatar tom goriunov Committed by GitHub

bump up Next.js version (#1290)

* bump up Next.js version

* [skip ci] fix release workflow for hotfix tag
parent 0c8cf879
...@@ -24,6 +24,11 @@ jobs: ...@@ -24,6 +24,11 @@ jobs:
state: 'all' 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 issueIds = issues.map(({ node_id }) => node_id);
const labelId = issues[0].labels.find(({ name }) => name === process.env.LABEL_NAME).node_id; const labelId = issues[0].labels.find(({ name }) => name === process.env.LABEL_NAME).node_id;
......
const withTM = require('next-transpile-modules')([
'react-syntax-highlighter',
'swagger-client',
'swagger-ui-react',
]);
const path = require('path');
const withRoutes = require('nextjs-routes/config')({ const withRoutes = require('nextjs-routes/config')({
outDir: 'nextjs', outDir: 'nextjs',
}); });
...@@ -13,8 +6,12 @@ const headers = require('./nextjs/headers'); ...@@ -13,8 +6,12 @@ const headers = require('./nextjs/headers');
const redirects = require('./nextjs/redirects'); const redirects = require('./nextjs/redirects');
const rewrites = require('./nextjs/rewrites'); const rewrites = require('./nextjs/rewrites');
const moduleExports = withTM({ const moduleExports = {
include: path.resolve(__dirname, 'icons'), transpilePackages: [
'react-syntax-highlighter',
'swagger-client',
'swagger-ui-react',
],
reactStrictMode: true, reactStrictMode: true,
webpack(config, { webpack }) { webpack(config, { webpack }) {
config.plugins.push( config.plugins.push(
...@@ -46,6 +43,6 @@ const moduleExports = withTM({ ...@@ -46,6 +43,6 @@ const moduleExports = withTM({
// otherwise it is impossible to upload large files (over 1Mb) // otherwise it is impossible to upload large files (over 1Mb)
bodyParser: false, bodyParser: false,
}, },
}); };
module.exports = withRoutes(moduleExports); module.exports = withRoutes(moduleExports);
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment