Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit 488a8b7

Browse files
committed
pin config environment only known environments so as not to conflict with other packages
1 parent d7a9147 commit 488a8b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ projectConfig.getProject();
99

1010
var processEnv = (typeof process !== 'undefined' && process.env) || {};
1111
var nodeEnv = processEnv.NODE_ENV;
12-
var config = configInfo[nodeEnv || 'production'];
12+
var config;
13+
if (nodeEnv in configInfo) config = configInfo[nodeEnv];
14+
else config = configInfo['production'];
1315

1416
var envConfigHost = processEnv.PAPERSPACE_CONFIG_HOST;
1517
var envConfigLogHost = processEnv.PAPERSPACE_CONFIG_LOG_HOST;

0 commit comments

Comments
 (0)