mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
fix missing default value
This commit is contained in:
parent
ba270db019
commit
dc44813b46
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ const authRouter = require('./routers/auth.js')
|
|||
dotenv.config();
|
||||
|
||||
// Setup urls from configs
|
||||
const use_ports = (process.env['USE_PORTS']).toLowerCase() == "true"
|
||||
const use_ports = (process.env['USE_PORTS'] || 'false').toLowerCase() == "true"
|
||||
process.env['FRONTEND_URL'] = process.env['SITE_URL'] + (use_ports ? `:${process.env['FRONTEND_PORT']}`:"")
|
||||
process.env['BACKEND_URL'] = process.env['SITE_URL'] + (use_ports ? `:${process.env['PORT']}`:"")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue