chore(frontend): Use sane default API-host

This commit is contained in:
Tibo De Peuter 2025-02-02 12:35:33 +01:00
parent b5dcaaa515
commit f9a729f22c
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -19,7 +19,7 @@ function setApiUrl() {
if (url === null || url.value === '') {
console.log('Using default API URL');
apiBaseUrl = 'http://127.0.0.1:3000/api/v1';
apiBaseUrl = `http://${window.location.hostname}:3000/api/v1`;
} else {
apiBaseUrl = url.value;
}