fix: altro bug del BASE_URL
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user