diff --git a/.sequelizerc b/.sequelizerc index 0f26a4e1..aa05bd02 100644 --- a/.sequelizerc +++ b/.sequelizerc @@ -1,4 +1,4 @@ -require('localenv'); +require('dotenv').config({ silent: true }); var path = require('path'); diff --git a/server/test/helper.js b/server/test/helper.js index ed178251..51171e1e 100644 --- a/server/test/helper.js +++ b/server/test/helper.js @@ -1,4 +1,4 @@ -require('localenv'); +require('dotenv').config({ silent: true }); // test environment variables process.env.DATABASE_URL = process.env.DATABASE_URL_TEST; diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 1c460696..2658cbd8 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -41,12 +41,5 @@ productionWebpackConfig.plugins.push( }, }) ); -productionWebpackConfig.plugins.push( - new webpack.DefinePlugin({ - 'process.env': { - NODE_ENV: JSON.stringify('production'), - }, - }) -); module.exports = productionWebpackConfig;