-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.index.ts
36 lines (30 loc) · 955 Bytes
/
config.index.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
import { writeFile } from 'fs';
const targetPath = './src/environments/environment.prod.ts';
const envConfigFile = `export const environment = {
production: true,
apiUrl: '${process.env.API_URL}',
appUrl: '${process.env.APP_URL}',
openUrl: '${process.env.OPEN_URL}',
mapApiKey: '${process.env.MAP_API_KEY}',
authTimeOuter: 5000,
mapOptions: { "latitude": 37.9709831, "longitude": 23.7224135, "zoom": 12 },
access: [
true, // community,
true, // loyalty,
true, // microcredit,
false // microfunding
],
subAccess: [
true, //partner_address,
true, // partner_contact,
true, // partner_payments,
true, // partner_auto_registration,
true // partner_fixed_campaign
],
version: '${process.env.RELEASE_VERSION}'
};`;
writeFile(targetPath, envConfigFile, 'utf8', (err) => {
if (err) {
return console.log(err);
}
});