From 38f63e2e9bf3e28b156bf965ff6157447a2cbf2e Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 24 Nov 2022 00:06:04 +0100 Subject: [PATCH] fix: altro bug del BASE_URL --- client/pages/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index 0959c28..9d4bbe0 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -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',