enable alternative configs

This commit is contained in:
Lachlan Kermode
2020-05-29 12:53:55 +02:00
parent 64087bf1e5
commit 3fc1ff4c28
3 changed files with 8 additions and 3 deletions

View File

@@ -9,7 +9,8 @@ const APP_DIR = path.resolve(__dirname, './src')
const BUILD_DIR = path.resolve(__dirname, './build')
/** env variables from config.js */
const envConfig = require('./config')
const CONFIG = process.env.CONFIG || 'config.js'
const envConfig = require('./' + CONFIG)
const userConfig = {}
const userFeatures = {}
for (const k in envConfig) {