set API URL on build time
Signed-off-by: garionion <github@entr0py.de>
This commit is contained in:
parent
3335c68e80
commit
d45d1ad56f
3 changed files with 4 additions and 26 deletions
|
@ -16,7 +16,7 @@ const enum HTTPMethod {
|
|||
PATCH = "PATCH",
|
||||
}
|
||||
|
||||
const url = "http://192.168.178.5:8080/api";
|
||||
const url = import.meta.env.API_URL ?? import.meta.env.VITE_API_URL;
|
||||
let token: token;
|
||||
let ready = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue