fix: NODE_ENV conflicts on pipelines

This commit is contained in:
Mrugesh Mohapatra
2019-08-19 01:19:40 +05:30
committed by mrugesh
parent d864326d97
commit ac50216949
10 changed files with 20 additions and 15 deletions

View File

@ -1,6 +1,6 @@
const path = require('path');
if (process.env.NODE_ENV !== 'production') {
if (process.env.FREECODECAMP_NODE_ENV !== 'production') {
const envPath = path.resolve(__dirname, '../.env');
require('dotenv').config({ path: envPath });
}