fix: altro bug del BASE_URL

This commit is contained in:
2022-11-24 00:06:04 +01:00
parent bd01bc9085
commit 38f63e2e9b
+1 -1
View File
@@ -9,7 +9,7 @@ export const LoginPage = () => {
const login = async () => {
// @ts-ignore
await fetch(`${import.meta.env.BASE_URL}/api/login`, {
await fetch(prependBaseUrl(`/api/login`), {
method: 'POST',
headers: {
'Content-Type': 'application/json',