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
|
||||||
william-at-counter marked this conversation as resolved
Outdated
|
|||||||
|
// 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
The new comment doesn't explain why this piece of code is there to begin with. Please do keep the explanation that when using Vite in dev mode, the web app runs on a different port than the API.