-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocalEnv.js
38 lines (35 loc) · 1.56 KB
/
localEnv.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
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
// General
websiteUrl: process.env.WEBSITE_URL, // http://site.com
authUrl: process.env.AUTH_URL, // http://site.com/auth
apiUrl: process.env.API_URL, // http://site.com/api
appUrl: process.env.LOCAL_APP_URL, // http://local.com/
cdnUrl: (process.env.CDN_URL || '').replace(/\/$/, ''), // PUBLIC_ASSETS_PATH
baseUrlPath: (process.env.BASE_URL_PATH || '').replace(/\/$/, ''), // PREFIX_PATH
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
// Others
nodeEnv: process.env.NODE_ENV,
enableTunnel: typeof process.env.ENABLE_TUNNEL === 'boolean' ? process.env.ENABLE_TUNNEL : process.env.ENABLE_TUNNEL === 'true',
host: process.env.HOST,
port: process.env.PORT,
secureCookie: typeof process.env.SECURE_COOKIE === 'boolean' ? process.env.SECURE_COOKIE : process.env.SECURE_COOKIE === 'true',
cookieSecret: process.env.COOKIE_SECRET,
cookieDomain: process.env.COOKIE_DOMAIN,
cookiePath: process.env.COOKIE_PATH,
redisHost: process.env.REDIS_HOST,
redisPort: process.env.REDIS_PORT,
// Specific
blogUrl: process.env.BLOG_URL,
dashboardUrl: process.env.DASHBOARD_URL,
loginUrl: process.env.LOGIN_URL,
registerUrl: process.env.REGISTER_URL,
algoliaCategoryIndex: process.env.ALGOLIA_CATEGORY_INDEX,
algoliaAppId: process.env.ALGOLIA_APP_ID,
algoliaApiKey: process.env.ALGOLIA_API_KEY,
googleMapsApiKey: process.env.GOOGLE_MAPS_API_KEY,
crispWebsiteId: process.env.CRISP_WEBSITE_ID,
gaCode: process.env.GA_CODE,
fbCode: process.env.FB_PIXEL_CODE,
gaInvestorCode: process.env.GA_INVESTOR_CODE,
};