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.
2 parents f72999f + bb89435 commit 59acbd7Copy full SHA for 59acbd7
next.config.js
@@ -1,5 +1,9 @@
1
require('dotenv').config()
2
3
+const vercelUrl =
4
+ process.env.NEXT_PUBLIC_VERCEL_URL &&
5
+ `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
6
+
7
module.exports = {
8
serverRuntimeConfig: {
9
NODE_ENV: process.env.NODE_ENV || 'development',
@@ -20,10 +24,7 @@ module.exports = {
20
24
},
21
25
basePath: process.env.BASE_PATH || '',
22
26
env: {
23
- APP_URL:
- process.env.APP_URL ||
- `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` ||
- 'http://127.0.0.1:3000',
27
+ APP_URL: process.env.APP_URL || vercelUrl || 'http://127.0.0.1:3000',
28
OSM_NAME: process.env.OSM_NAME || 'OSM',
29
BASE_PATH: process.env.BASE_PATH || '',
30
0 commit comments