Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 33b7e69

Browse files
author
vikasrohit
committed
AS#149005557179710, Screen goes blank randomly after accounts app integration for members app
-- Allowed overriding accounts app constants via env variables to ease the local development
1 parent 53c01ab commit 33b7e69

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

webpack.config.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ if (CI === 'master') {
1616
process.env.NODE_ENV = 'development'
1717
}
1818

19-
20-
process.env.CONNECTOR_URL = `https://accounts.${process.env.DOMAIN}/connector.html`
21-
process.env.ACCOUNTS_APP_URL = `https://accounts.${process.env.DOMAIN}/tc`
19+
var accountsAppURL = null
20+
if (process.env.ACCOUNTS_APP_URL) {
21+
accountsAppURL = process.env.ACCOUNTS_APP_URL
22+
}
23+
var accountsConnectorURL = null
24+
if (process.env.ACCOUNTS_APP_CONNECTOR_URL) {
25+
accountsConnectorURL = process.env.ACCOUNTS_APP_CONNECTOR_URL
26+
}
2227

2328
const config = require('appirio-tech-webpack-config')({
2429
dirname: __dirname,
@@ -34,4 +39,11 @@ const config = require('appirio-tech-webpack-config')({
3439

3540
if (CI) config.output.publicPath = process.env.ASSET_PREFIX
3641

42+
if (accountsAppURL) {
43+
process.env.ACCOUNTS_APP_URL = accountsAppURL
44+
}
45+
if (accountsConnectorURL) {
46+
process.env.ACCOUNTS_APP_CONNECTOR_URL = accountsConnectorURL
47+
}
48+
3749
module.exports = config

0 commit comments

Comments
 (0)