chore(frontend): Use sane default API-host
This commit is contained in:
parent
b5dcaaa515
commit
f9a729f22c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue