Skip to content

Commit 35bfb66

Browse files
committed
Merge branch 'develop' into render-org-teams
2 parents 8d59d9d + e8cf103 commit 35bfb66

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

next.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require('dotenv').config()
1+
const vercelUrl =
2+
process.env.NEXT_PUBLIC_VERCEL_URL &&
3+
`https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
24

35
module.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
},

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
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",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
33503345
drange@^1.0.2:
33513346
version "1.1.1"
33523347
resolved "https://registry.yarnpkg.com/drange/-/drange-1.1.1.tgz#b2aecec2aab82fcef11dbbd7b9e32b83f8f6c0b8"

0 commit comments

Comments
 (0)