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