fixed reserved env name

This commit is contained in:
2025-11-19 21:37:16 -05:00
parent 2d28582962
commit 93440eab95
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ const userStore = useUserStore();
// console.log(data); // console.log(data);
// userStore.user = data; // userStore.user = data;
// }); // });
const APIHOST = import.meta.env.BASE_URL; const APIHOST = import.meta.env.VITE_APIHOST;
async function logout() { async function logout() {
await fetch(`${APIHOST}/logout`, { await fetch(`${APIHOST}/logout`, {

View File

@@ -37,7 +37,7 @@ const router = createRouter({
] ]
}) })
const addr = import.meta.env.BASE_URL; const addr = import.meta.env.VITE_APIHOST;
router.beforeEach(async (to) => { router.beforeEach(async (to) => {