fix(frontend): Selectieve testen in IDE

This commit is contained in:
Tibo De Peuter 2025-04-21 12:34:46 +02:00
parent 6017d9c54f
commit 196875538d
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
3 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,10 @@
export const apiConfig = {
baseUrl: ((): string => {
if (import.meta.env.MODE === "test") {
// TODO Remove hardcoding
return "http://localhost:9876/api";
}
if (import.meta.env.VITE_API_BASE_URL) {
return import.meta.env.VITE_API_BASE_URL;
}