🚧 Add basic BASE_URL and PORT env utilisation #76

This commit is contained in:
Thomas "ajnart" Camlong
2022-05-19 02:04:48 +02:00
parent 7bc779b296
commit 9b440c0da3
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
const { env } = require('process');
const withBundleAnalyzer = require('@next/bundle-analyzer')({ const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true', enabled: process.env.ANALYZE === 'true',
}); });
@@ -10,4 +12,5 @@ module.exports = withBundleAnalyzer({
experimental: { experimental: {
outputStandalone: true, outputStandalone: true,
}, },
basePath: env.BASE_URL,
}); });

View File

@@ -11,7 +11,7 @@
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"analyze": "ANALYZE=true next build", "analyze": "ANALYZE=true next build",
"start": "next start --port 7575", "start": "next start",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"export": "next build && next export", "export": "next build && next export",
"lint": "next lint", "lint": "next lint",