forked from fylein/fyle-qbo-app-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.index.ts
38 lines (35 loc) · 1.12 KB
/
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
37
38
import { writeFile } from 'fs';
const targetPath = './src/environments/environment.ts';
const envConfigFile = `export const environment = {
production: false,
fyle_url: '${process.env.FYLE_URL}',
fyle_client_id: '${process.env.FYLE_CLIENT_ID}',
callback_uri: '${process.env.CALLBACK_URL}',
api_url: '${process.env.API_URL}',
app_url: '${process.env.APP_URL}',
qbo_client_id: '${process.env.QBO_CLIENT_ID}',
old_qbo_app_url: '${process.env.OLD_QBO_APP_URL}',
qbo_scope: '${process.env.QBO_SCOPE}',
qbo_authorize_uri: '${process.env.QBO_AUTHORIZE_URI}',
qbo_app_url: '${process.env.QBO_APP_URL}',
hotjar_id: '${process.env.HOTJAR_ID}',
sentry_dsn: '${process.env.SENTRY_DSN}',
release: '${process.env.RELEASE}',
fyle_app_url: '${process.env.FYLE_APP_URL}',
tests: {
user: {
refresh_token: '${process.env.TESTS_USER_REFRESH_TOKEN}',
},
workspaceId: '${process.env.TESTS_WORKSPACEID}'
},
refiner_survey: {
onboarding_done_survery_id: 'xyz',
export_done_survery_id: 'xyz'
}
};
`;
writeFile(targetPath, envConfigFile, 'utf8', (err) => {
if (err) {
return console.error(err);
}
});