Repository navigation
Expand file tree
/
Copy pathEnvironment.js
More file actions
66 lines (62 loc) · 1.81 KB
/
Copy pathEnvironment.js
File metadata and controls
66 lines (62 loc) · 1.81 KB
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
const ENV = {
dev: {
envName: "dev",
oAuthConfig: {
issuer: "exchangapay.us.auth0.com",
clientId: "7cpZsKwJutx5HU5lMvqib4eqvYCK0WtO",
audience: "https://ExchangaApi.net",
scope: "openid profile email",
},
apiUrls: {
uploadUrl: "https://devapi.exchangapay.com/",
cardsUrl: "https://devapi.exchangapay.com/",
},
localization: {
defaultResourceName: "Exchanga Pay",
},
},
prod: {
envName: "prod",
oAuthConfig: {
issuer: "exchangapay.eu.auth0.com",
clientId: "0zf1gFmgg6rp3BezUDn1jAimFY5FF3hH",
audience: "https://ExchangaApi.net",
scope: "openid profile email",
sentryEnvornment: "development",
sentryLoggs: false,
sentryDsn: 'https://97c9602ff0c4f74c3f55743eace18039@o4510198382919680.ingest.us.sentry.io/4510198383902720',
},
apiUrls: {
uploadUrl: "https://api.exchangapay.com/",
cardsUrl: "https://api.exchangapay.com/",
},
localization: {
defaultResourceName: "Exchanga Pay",
},
},
tst: {
envName: "tst",
oAuthConfig: {
issuer: "exchangapay-tst.eu.auth0.com",
clientId: "QN7NMqYHzengFUnmR0HCvenDCSOwGwNs",
audience: "https://ExchangaTstApi.net",
scope: "openid profile email enroll offline_access",
sentryEnvornment: "development",
sentryLoggs: false,
sentryDsn: 'https://97c9602ff0c4f74c3f55743eace18039@o4510198382919680.ingest.us.sentry.io/4510198383902720',
},
apiUrls: {
uploadUrl: " https://tstapi.exchangapay.com/",
cardsUrl: " https://tstapi.exchangapay.com/",
},
localization: {
defaultResourceName: "Exchanga Pay",
},
},
};
export const getAllEnvData = (envName) => {
return ENV["tst"] || ENV.prod;
};
export const getEnvVars = () => {
return __DEV__ ? ENV.local : ENV.prod;
};