Improvements to URL handling in the webapp allowing for SSL (when behind a proxy) #104296
@ -1,6 +1,8 @@
|
|||||||
let url = new URL(window.location.href);
|
let url = new URL(window.location.href);
|
||||||
|
|
||||||
// When using Vite development mode, access the API on port 8080.
|
// When the web interface is running on a different port than the API, for
|
||||||
|
// example when using the Vite devserver, setting the Vite --mode flag to
|
||||||
|
// "development" will force port 8080 for the API.
|
||||||
if (import.meta.env.MODE == 'development') {
|
if (import.meta.env.MODE == 'development') {
|
||||||
url.port = '8080';
|
url.port = '8080';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user