Fixes env fuck up

This commit is contained in:
Akshay Nair committed 2020-10-06 23:09:24 +05:30
1 parent aae6f8d503
commit ba38a08983
1 file changed
+3 -2
+3 -2
View File
@@ -1,7 +1,8 @@
const path = require('path');
if (!process.env.CI) {
const { ENV = 'sandbox' } = process.env;
const { ENV = 'sandbox', CI } = process.env;
if (!CI) {
require('dotenv').config({ path: path.resolve(`.env.${ENV}`) });
}