ph-utils 0.9.8 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/server.js +2 -2
- package/package.json +1 -1
package/lib/server.js
CHANGED
@@ -87,11 +87,11 @@ export function parseEnvs() {
|
|
87
87
|
if (values.NODE_ENV != null && typeof values.NODE_ENV === "string") {
|
88
88
|
nodeEnv = values.NODE_ENV;
|
89
89
|
}
|
90
|
-
|
90
|
+
if (nodeEnv == null) {
|
91
91
|
nodeEnv = "production";
|
92
92
|
}
|
93
93
|
process.env.NODE_ENV = nodeEnv;
|
94
|
-
files.push(`.env.${
|
94
|
+
files.push(`.env.${nodeEnv}`);
|
95
95
|
let envParsed = {};
|
96
96
|
for (let i = 0, len = files.length; i < len; i++) {
|
97
97
|
const file = files[i];
|