Skip to content

Commit 14039b5

Browse files
committed
added base url
1 parent 9c106da commit 14039b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,17 @@ declare global {
6161
_env_: customEnv
6262
hj: any
6363
_hjSettings: any
64-
Worker: any,
64+
Worker: any
6565
__BASE_URL__: string
6666
__REACT_APP_ORCHESTRATOR_ROOT__: string
6767
}
6868
}
6969

70+
if (!window.__BASE_URL__ || !window.__REACT_APP_ORCHESTRATOR_ROOT__) {
71+
window.__BASE_URL__ = '/dashboard'
72+
window.__REACT_APP_ORCHESTRATOR_ROOT__ = 'orchestrator'
73+
}
74+
7075
const root = document.getElementById('root')
7176
if (import.meta.env.VITE_NODE_ENV === 'production' && window._env_ && window._env_.VITE_SENTRY_ERROR_ENABLED) {
7277
const integrationArr = []

0 commit comments

Comments
 (0)