Update nginx routes

This commit is contained in:
LukeGus
2025-08-09 00:57:15 -05:00
parent c69e03d783
commit 30b07ba8f2
4 changed files with 5 additions and 17 deletions

View File

@@ -59,10 +59,7 @@ function getCookie(name: string) {
}, "");
}
const apiBase =
typeof window !== "undefined" && window.location.hostname === "localhost"
? "http://localhost:8081/users"
: "/users";
const apiBase = import.meta.env.DEV ? "http://localhost:8081/users" : "/users";
const API = axios.create({
baseURL: apiBase,