Skip to content

Commit 20a3828

Browse files
committed
🚧 Add basic BASE_URL and PORT env utilisation ajnart#76
1 parent b531e17 commit 20a3828

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

next.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { env } = require('process');
2+
13
const withBundleAnalyzer = require('@next/bundle-analyzer')({
24
enabled: process.env.ANALYZE === 'true',
35
});
@@ -10,4 +12,5 @@ module.exports = withBundleAnalyzer({
1012
experimental: {
1113
outputStandalone: true,
1214
},
15+
basePath: env.BASE_URL,
1316
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dev": "next dev",
1212
"build": "next build",
1313
"analyze": "ANALYZE=true next build",
14-
"start": "next start --port 7575",
14+
"start": "next start",
1515
"typecheck": "tsc --noEmit",
1616
"export": "next build && next export",
1717
"lint": "next lint",

0 commit comments

Comments
 (0)