.env.production file eliminated ! (-> .env)

.env.production worked in local
added myconfig
messagepopup working (but not ready yet)
added Graphql (only module)
This commit is contained in:
Paolo Arena
2018-12-26 21:02:16 +01:00
parent e41eeb43ca
commit 7a217c3ca9
42 changed files with 430 additions and 657 deletions

View File

@@ -1,5 +1,19 @@
const DotEnv = require('dotenv')
const parsedEnv = DotEnv.config().parsed;
let path
switch (process.env.NODE_ENV) {
case 'test':
path = `.env.test`
break
case 'development':
path = `.env.development`
break
default:
path = `.env`
}
console.log("PATH", path)
const parsedEnv = DotEnv.config({ path }).parsed;
module.exports = function () {
// Let's stringify our variables