Skip to content

Commit 1e71c67

Browse files
Merge pull request #58 from hurricanemark/Phase4-TeamRolEmiSeriousWorks
Phase4 team rol emi serious works
2 parents 07affaa + cc39a35 commit 1e71c67

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

index.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,26 @@ let WEATHERBIT_KEY;
1414
let WEATHERBIT_URI;
1515
let GoogleclientID;
1616
let GoogleclientSecret;
17-
if (process.env.NODE_ENV === "production") {
17+
// if (process.env.NODE_ENV === "production") {
1818
EXCHANGE_RATE_APIKEY = process.env.EXCHANGE_RATE_APIKEY;
1919
BASE_URI = process.env.EXCHANGE_BASE_URI;
2020
SAMPLE2_URI = process.env.SAMPLE2_URI;
2121
WEATHERBIT_KEY = process.env.WEATHERBIT_KEY;
2222
WEATHERBIT_URI = process.env.WEATHERBIT_URI;
23-
GoogleclientID = process.env.clientID,
24-
GoogleclientSecret = process.env.clientSecret
25-
} else {
26-
// dynamically importing keys.js:
27-
let AppKeys = await import('./config/keys.js');
28-
EXCHANGE_RATE_APIKEY = AppKeys.exchangerateapi.APIKEY;
29-
BASE_URI = AppKeys.exchangerateapi.BASE_URI;
30-
SAMPLE2_URI = AppKeys.exchangerateapi.SAMPLE2_URI;
31-
WEATHERBIT_KEY = AppKeys.weatherbitapi.APIKEY;
32-
WEATHERBIT_URI = AppKeys.weatherbitapi.BASE_URI;
33-
GoogleclientID = AppKeys.google.clientID,
34-
GoogleclientSecret = AppKeys.google.clientSecret
35-
}
23+
GoogleclientID = process.env.GoogleclientID;
24+
GoogleclientSecret = process.env.GoogleclientSecret;
25+
26+
//} else {
27+
// // dynamically importing keys.js:
28+
// let AppKeys = await import('./config/keys.js');
29+
// EXCHANGE_RATE_APIKEY = AppKeys.exchangerateapi.APIKEY;
30+
// BASE_URI = AppKeys.exchangerateapi.BASE_URI;
31+
// SAMPLE2_URI = AppKeys.exchangerateapi.SAMPLE2_URI;
32+
// WEATHERBIT_KEY = AppKeys.weatherbitapi.APIKEY;
33+
// WEATHERBIT_URI = AppKeys.weatherbitapi.BASE_URI;
34+
// GoogleclientID = AppKeys.google.clientID;
35+
// GoogleclientSecret = AppKeys.google.clientSecre;
36+
// }
3637

3738

3839

0 commit comments

Comments
 (0)