We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824ff3f commit 19c2b27Copy full SHA for 19c2b27
next.config.js
@@ -2,8 +2,12 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
2
enabled: false, //process.env.ANALYZE === 'true',
3
});
4
5
+const isProd = process.env.VERCEL_ENV === "production"; // or NODE_ENV === 'production'
6
+
7
module.exports = withBundleAnalyzer({
8
swcMinify: true,
9
reactStrictMode: true,
10
output: "standalone",
11
+ basePath: isProd ? "/try/sandbox" : "",
12
+ assetPrefix: isProd ? "/try/sandbox/" : "",
13
0 commit comments