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 () => { const login = async () => {
// @ts-ignore // @ts-ignore
await fetch(`${import.meta.env.BASE_URL}/api/login`, { await fetch(prependBaseUrl(`/api/login`), {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

Loading…
Cancel
Save