mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-03 09:44:41 +02:00
Add:Env variable setting to allow CORS
This commit is contained in:
parent
ab2026ecea
commit
69833db819
3 changed files with 9 additions and 7 deletions
1
index.js
1
index.js
|
@ -4,7 +4,6 @@ global.appRoot = __dirname
|
|||
const isDev = process.env.NODE_ENV !== 'production'
|
||||
if (isDev) {
|
||||
const devEnv = require('./dev').config
|
||||
process.env.NODE_ENV = 'development'
|
||||
if (devEnv.Port) process.env.PORT = devEnv.Port
|
||||
if (devEnv.ConfigPath) process.env.CONFIG_PATH = devEnv.ConfigPath
|
||||
if (devEnv.MetadataPath) process.env.METADATA_PATH = devEnv.MetadataPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue