Skip to content

Commit bc8b78a

Browse files
committed
Provide option for seconday url
1 parent 7446fdb commit bc8b78a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: src/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ const App = () => {
3636

3737
// Prevent using incompatible environment and deployment
3838
const pncUrl = webConfigService.getPncUrl();
39+
console.log(pncUrl);
40+
console.log(window.location.origin);
41+
console.log(process.env.REACT_APP_WEB_UI_URL);
42+
console.log(process.env.REACT_APP_WEB_SECONDARY_UI_URL);
43+
console.log(window.location.hostname);
3944
if (
4045
// https://example.com
4146
!pncUrl.startsWith(window.location.origin) &&
42-
process.env.REACT_APP_WEB_UI_URL !== window.location.origin &&
47+
(process.env.REACT_APP_WEB_UI_URL !== window.location.origin ||
48+
process.env.REACT_APP_WEB_SECONDARY_UI_URL !== window.location.origin) &&
4349
// example.com
4450
window.location.hostname !== 'localhost'
4551
) {

0 commit comments

Comments
 (0)