-
Notifications
You must be signed in to change notification settings - Fork 67
/
runtime.config.js
35 lines (34 loc) · 1.64 KB
/
runtime.config.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
const publicRuntimeConfig = {
// Will be available on both server and client
buildHash: process.env.COMMIT_SHA,
buildDate: Date.now(),
mixpanelEnv: process.env.MIXPANEL_ENV,
mixpanelAPIKey: process.env.MIXPANEL_KEY,
useTermsOfService: process.env.USE_TERMS_OF_SERVICE === '1',
useTrmApi: process.env.USE_TRM_API === '1',
showBuildInfo: process.env.SHOW_BUILD_INFO === '1',
infuraProjectId: process.env.INFURA_PROJECT_ID,
etherscanAPIKey: process.env.ETHERSCAN_API_KEY,
sentryRelease: process.env.SENTRY_RELEASE,
exchangeAddress:
process.env.USE_DUMMY === '1' ? process.env.DUMMY_EXCHANGE : process.env.EXCHANGE,
multiplyProxyActions: process.env.MULTIPLY_PROXY_ACTIONS,
discoverProxyUrl: process.env.DISCOVER_PROXY_URL,
ajnaSubgraphUrl: process.env.AJNA_SUBGRAPH_URL,
ajnaSubgraphUrlGoerli: process.env.AJNA_SUBGRAPH_URL_GOERLI,
ajnaSubgraphV2Url: process.env.AJNA_SUBGRAPH_V2_URL,
ajnaSubgraphV2UrlGoerli: process.env.AJNA_SUBGRAPH_V2_URL_GOERLI,
aaveSubgraphUrl: process.env.AAVE_SUBGRAPH_URL,
aaveSubgraphUrlOptimism: process.env.AAVE_OPTIMISM_SUBGRAPH_URL,
referralSubgraphUrl: process.env.REFERRAL_SUBGRAPH_URL,
configUrl: process.env.CONFIG_URL,
rpcGatewayUrl: process.env.RPC_GATEWAY,
grooveWidgetId: process.env.GROOVE_WIDGET_ID || `27241a63-86b5-47e2-a167-2e2a3e2a621e`,
awsGasPriceUrl: 'https://rjaw1lt1ch.execute-api.us-east-1.amazonaws.com/staging/',
contentfulSpaceId: process.env.CONTENTFUL_SPACE_ID,
contentfulAccessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
contentfulPreviewAccessToken: process.env.CONTENTFUL_PREVIEW_ACCESS_TOKEN,
}
module.exports = {
publicRuntimeConfig: publicRuntimeConfig,
}