We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af1c20d commit b487fefCopy full SHA for b487fef
1 file changed
next.config.js
@@ -1,9 +1,13 @@
1
const path = require('path');
2
const runtimeCaching = require('next-pwa/cache');
3
+
4
+const isProduction = process.env.NEXT_ENV === 'PRODUCTION';
5
+const basePath = isProduction ? '/development-tools' : '';
6
+const assetPrefix = isProduction ? '/development-tools' : '';
7
8
let nextConfig = {
- // This tells the app it lives inside this subpath
- basePath: '/development-tools',
- assetPrefix: '/development-tools',
9
+ basePath: basePath,
10
+ assetPrefix: assetPrefix,
11
reactStrictMode: true,
12
sassOptions: {
13
includePaths: [path.join(__dirname, 'styles')],
0 commit comments