Merge branch 'main' into 'main'
Add env vars to load webui from different paths See merge request RemixDev/deemix-webui!40
This commit is contained in:
commit
f0519e3fc0
@ -120,6 +120,7 @@ const routes = [
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL || '',
|
||||
routes,
|
||||
scrollBehavior() {
|
||||
return { x: 0, y: 0 }
|
||||
|
@ -33,5 +33,5 @@ class CustomSocket extends WebSocket {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const socket = new CustomSocket((location.protocol === 'https:' ? 'wss://' : 'ws://') + location.host + '/')
|
||||
const domain = process.env.WEBSOCKET_URL || location.host
|
||||
export const socket = new CustomSocket((location.protocol === 'https:' ? 'wss://' : 'ws://') + domain + '/')
|
||||
|
Loading…
Reference in New Issue
Block a user