Minor fix

pull/1017/head
Mikunj 5 years ago
parent fa387b5dfa
commit 9f58579243

@ -6,7 +6,6 @@ let environment;
// In production mode, NODE_ENV cannot be customized by the user
if (isDevelopment) {
console.log('development');
environment = process.env.NODE_ENV || 'development';
process.env.LOKI_DEV = 1;
} else {

@ -12,7 +12,7 @@ let storageProfile;
const { NODE_ENV: environment, NODE_APP_INSTANCE: instance } = process.env;
// We need to make sure instance is not empty
const isValidInstance = instance === 'string' && instance.length > 0;
const isValidInstance = typeof instance === 'string' && instance.length > 0;
const isProduction = environment === 'production' && !isValidInstance;
// Use seperate data directories for each different environment and app instances

Loading…
Cancel
Save