From 74c4ea6dda97803e6a2f7a9518c3cdec37d7fcac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20B=C3=B6ckmann?= <75972296+bencodes07@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:34:43 +0200 Subject: [PATCH] Update actions.ts --- src/lib/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/actions.ts b/src/lib/actions.ts index 178ef27..f3beafd 100644 --- a/src/lib/actions.ts +++ b/src/lib/actions.ts @@ -145,7 +145,7 @@ export async function loginUser(prevState: LoginFormState, formData: FormData): const encodedData = new URLSearchParams(data as Record).toString(); try { - const response = await fetch("https://ipk-frontend.netlify.app/api/user/login", { + const response = await fetch(process.env.FRONTEND_DOMAIN + "/api/user/login", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"