fix: altro bug del BASE_URL

pull/1/head
Antonio De Lucreziis 2 years ago
parent bd01bc9085
commit 38f63e2e9b

@ -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',

Loading…
Cancel
Save