Skip to content

Commit

Permalink
WID-454 - Use config.json from assets for environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
brampauwelyn committed May 13, 2022
1 parent 23cb6d9 commit 4ccca3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import config from '../assets/config.json';

export const environment = {
production: process.env.NG_APP_PRODUCTION,
apiUrl: process.env.NG_APP_API_URL,
widgetApi_currentVersion: process.env.NG_APP_WIDGET_API_CURRENT_VERSION,
widgetApi_embedUrl_current: process.env.NG_APP_WIDGET_API_EMBED_URL_CURRENT,
production: config.NG_APP_API_URL,
apiUrl: config.NG_APP_API_URL,
widgetApi_currentVersion: config.NG_APP_WIDGET_API_CURRENT_VERSION,
widgetApi_embedUrl_current: config.NG_APP_WIDGET_API_EMBED_URL_CURRENT,
widgetApi_embedUrl_forceCurrent:
process.env.NG_APP_WIDGET_API_EMBEDURL_FORCE_CURRENT,
projectaanvraagDashboardUrl: process.env.NG_APP_PROJECTAANVRAAG_DASHBOARD_URL,
zendeskUrl: process.env.NG_APP_ZENDESK_URL,
publishers: process.env.NG_APP_PUBLISHERS,
config.NG_APP_WIDGET_API_EMBEDURL_FORCE_CURRENT,
projectaanvraagDashboardUrl: config.NG_APP_PROJECTAANVRAAG_DASHBOARD_URL,
zendeskUrl: config.NG_APP_ZENDESK_URL,
publishers: config.NG_APP_PUBLISHERS,
};
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"target": "ES5",
"typeRoots": ["node_modules/@types"],
"lib": ["ESNext", "dom"],
"skipLibCheck": true
"skipLibCheck": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"angularCompilerOptions": {
"strictTemplates": true
Expand Down

0 comments on commit 4ccca3e

Please sign in to comment.