🚧 Add basic BASE_URL and PORT env utilisation #76

This commit is contained in:
Thomas "ajnart" Camlong committed 2022-05-19 02:05:23 +02:00
1 parent 7bc779b296
commit 9b440c0da3
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -1,3 +1,5 @@
const { env } = require('process');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
@@ -10,4 +12,5 @@ module.exports = withBundleAnalyzer({
experimental: {
outputStandalone: true,
},
basePath: env.BASE_URL,
});
+1 -1
View File
@@ -11,7 +11,7 @@
"dev": "next dev",
"build": "next build",
"analyze": "ANALYZE=true next build",
"start": "next start --port 7575",
"start": "next start",
"typecheck": "tsc --noEmit",
"export": "next build && next export",
"lint": "next lint",