-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.ts
147 lines (120 loc) · 3.21 KB
/
config.ts
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/* eslint-disable sort-keys */
/* eslint-disable no-process-env */
const config = {
/**
* Base URL
*/
baseUrl: process.env.NEXT_PUBLIC_URL!,
/**
* Base URL to api
*/
baseApiUrl: `${process.env.NEXT_PUBLIC_BASE_API_URL}/api/v2`!,
/*
* is Production
*/
isProduction: process.env.NODE_ENV === 'production',
/*
* Network jSON RPC
*/
networkRpcUrl: process.env.NEXT_PUBLIC_NETWORK_JSON_RPC!,
/*
* Network Id
*/
chainId: parseInt(process.env.NEXT_PUBLIC_NETWORK_ID!, 10),
/*
* Network jSON RPC
*/
useTestNet: process.env.NEXT_PUBLIC_TESTNET === 'true',
/*
* Images URL
*/
imagesUrl: process.env.NEXT_PUBLIC_IMAGES_URL!,
/*
* Images Bucket
*/
imagesBucket: process.env.NEXT_PUBLIC_IMAGES_BUCKET!,
/*
* Microcredit Bucket
*/
microcreditBucket: process.env.NEXT_PUBLIC_MICROCREDIT_BUCKET!,
/*
* Explorer URL
*/
explorerUrl: process.env.NEXT_PUBLIC_EXPLORER_URL!,
/*
* Graph URL
*/
graphUrl: process.env.NEXT_PUBLIC_GRAPH_URL!,
/**
* Google Analytics
*/
gaId: process.env.NEXT_PUBLIC_GA,
/*
* Public URL
*/
publicUrl: process.env.NEXT_PUBLIC_URL!,
/**
* MapBox API Key
*/
mapBoxApiKey: process.env.NEXT_PUBLIC_MAPBOX_KEY!,
/**
* MapBox API style
*/
mapBoxStyle: process.env.NEXT_PUBLIC_MAPBOX_STYLE!,
/**
* Google Places Key
*/
googlePlacesKey: process.env.NEXT_PUBLIC_GOOGLE_PLACES_KEY,
/**
* Sentry DSN
*/
sentryDSN: process.env.NEXT_PUBLIC_SENTRY_DSN,
/**
* cUSD smart contract address
*/
cUSDAddress: process.env.NEXT_PUBLIC_CUSD_ADDRESS,
/**
* Number of days until a signature is expired
*/
signatureExpires: process.env.NEXT_PUBLIC_SIGNATURE_EXPIRES,
/**
* Signature message to confirm signature
*/
signatureMessage: process.env.NEXT_PUBLIC_SIGNATURE_MESSAGE,
/**
* Feature flag for learn and earn
*/
enableLearnEarn: process.env.NEXT_PUBLIC_ENABLE_LEARN_EARN,
/**
* Support URL
*/
supportURL: process.env.NEXT_PUBLIC_SUPPORT_URL,
/**
* WalletConnect project id, mandatory for WalletConnect v2
*/
walletConnectProjectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID!,
/**
* Firebase: push notifications config
* */
fbApiKey: process.env.NEXT_PUBLIC_FB_API_KEY,
fbAuthDomain: process.env.NEXT_PUBLIC_FB_AUTH_DOMAIN,
fbProjectId: process.env.NEXT_PUBLIC_FB_PROJECT_ID,
fbStorageBucket: process.env.NEXT_PUBLIC_FB_STORAGE_BUCKET,
fbMessagingSenderId: process.env.NEXT_PUBLIC_FB_MESSAGING_SENDER_ID,
fbAppId: process.env.NEXT_PUBLIC_FB_APP_ID,
fbVapidKey: process.env.NEXT_PUBLIC_FB_VAPID_KEY,
fbMeasurementId: process.env.NEXT_PUBLIC_FB_MEASUREMENT_ID,
/*
* Microcredit Manager Admin
*/
microcreditManagerAdmin: process.env.NEXT_PUBLIC_MICROCREDIT_MANAGER_ADMIN,
/*
* ClientId for L&E
*/
clientId: process.env.NEXT_PUBLIC_CLIENT_ID,
/*
* Email Verification URL
*/
verifyEmailUrl: process.env.NEXT_PUBLIC_VERIFY_EMAIL_URL
};
export default config;