chore: upgrade next to v13

This commit is contained in:
lawvs
2022-11-03 14:53:44 +08:00
parent 0a57e29f2b
commit 8fb4b69e27
3 changed files with 192 additions and 9 deletions

View File

@@ -1,12 +1,8 @@
// @ts-check
const withTM = require('next-transpile-modules')([
'@toeverything/pathfinder-logger',
]);
const { getGitVersion, getCommitHash } = require('./scripts/gitInfo');
/** @type {import('next').NextConfig} */
const nextConfig = withTM({
const nextConfig = {
productionBrowserSourceMaps: true,
reactStrictMode: true,
swcMinify: false,
@@ -18,6 +14,6 @@ const nextConfig = withTM({
VERSION: getGitVersion(),
COMMIT_HASH: getCommitHash(),
},
});
};
module.exports = nextConfig;

View File

@@ -23,7 +23,7 @@
"@toeverything/pathfinder-logger": "workspace:@pathfinder/logger@*",
"css-spring": "^4.1.0",
"lit": "^2.3.1",
"next": "12.3.1",
"next": "13.0.1",
"next-transpile-modules": "^9.1.0",
"prettier": "^2.7.1",
"quill": "^1.3.7",