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;