set default env to production

This commit is contained in:
2019-12-22 19:26:30 +03:00
parent e8bbef82f7
commit 13caf1923f

View File

@@ -27,7 +27,7 @@ const test: IConfig = {
};
const envs: { [key: string]: IConfig } = { production, development, test };
const env = process.env.NODE_ENV;
const env = process.env.NODE_ENV || "production";
const currentConfig = envs[env];
export { currentConfig as config };