File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1- require ( 'dotenv' ) . config ( )
1+ const vercelUrl =
2+ process . env . NEXT_PUBLIC_VERCEL_URL &&
3+ `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } `
24
35module . exports = {
46 serverRuntimeConfig : {
@@ -20,10 +22,7 @@ module.exports = {
2022 } ,
2123 basePath : process . env . BASE_PATH || '' ,
2224 env : {
23- APP_URL :
24- process . env . APP_URL ||
25- `https://${ process . env . NEXT_PUBLIC_VERCEL_URL } ` ||
26- 'http://127.0.0.1:3000' ,
25+ APP_URL : process . env . APP_URL || vercelUrl || 'http://127.0.0.1:3000' ,
2726 OSM_NAME : process . env . OSM_NAME || 'OSM' ,
2827 BASE_PATH : process . env . BASE_PATH || '' ,
2928 } ,
Original file line number Diff line number Diff line change 5555 "cors" : " ^2.8.5" ,
5656 "csurf" : " ^1.11.0" ,
5757 "date-fns" : " ^2.28.0" ,
58- "dotenv" : " ^6.2.0" ,
5958 "express" : " ^4.17.2" ,
6059 "express-boom" : " ^2.0.0" ,
6160 "express-pino-logger" : " ^4.0.0" ,
Original file line number Diff line number Diff line change @@ -3342,11 +3342,6 @@ dot-prop@^4.2.1:
33423342 dependencies :
33433343 is-obj "^1.0.0"
33443344
3345- dotenv@^6.2.0 :
3346- version "6.2.0"
3347- resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064"
3348- integrity sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w==
3349-
33503345drange@^1.0.2 :
33513346 version "1.1.1"
33523347 resolved "https://registry.yarnpkg.com/drange/-/drange-1.1.1.tgz#b2aecec2aab82fcef11dbbd7b9e32b83f8f6c0b8"
You can’t perform that action at this time.
0 commit comments