Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit dec233c

Browse files
committed
chore: use "APPENV" to config environment
1 parent 4d920d6 commit dec233c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

config/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* global process */
22

33
module.exports = (() => {
4-
const env = process.env.NODE_ENV || "development";
4+
const env = process.env.APPENV || "dev";
55

66
// for security reason don't let to require any arbitrary file defined in process.env
7-
if (["production", "development"].indexOf(env) < 0) {
8-
return require("./development");
7+
if (["prod", "dev"].indexOf(env) < 0) {
8+
return require("./dev");
99
}
1010

1111
return require("./" + env);
File renamed without changes.

0 commit comments

Comments
 (0)