forked from opencollective/opencollective-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.js
27 lines (24 loc) · 886 Bytes
/
env.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const debug = require('debug');
const dotenv = require('dotenv');
dotenv.config();
debug.enable(process.env.DEBUG);
const defaults = {
PORT: 3000,
NODE_ENV: 'development',
API_KEY: '09u624Pc9F47zoGLlkg1TBSbOl2ydSAq',
API_URL: 'https://api-staging.opencollective.com',
IMAGES_URL: 'https://images-staging.opencollective.com',
WEBSITE_URL: 'http://localhost:3000',
INVOICES_URL: 'https://invoices-staging.opencollective.com',
GIFTCARDS_GENERATOR_URL: 'https://giftcards-generator-staging.opencollective.com',
PAYPAL_ENVIRONMENT: 'sandbox',
STRIPE_KEY: 'pk_test_VgSB4VSg2wb5LdAkz7p38Gw8',
GOOGLE_MAPS_API_KEY: 'AIzaSyCRLIexl7EkMQk_0_yNsjO4Vqb_MccD-RI',
RECAPTCHA_SITE_KEY: '6LcyeXoUAAAAAFtdHDZfsxncFUkD9NqydqbIFcCK',
RECAPTCHA_ENABLED: false,
};
for (const key in defaults) {
if (process.env[key] === undefined) {
process.env[key] = defaults[key];
}
}