.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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user