Skip to content

Commit

Permalink
Update actions.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bencodes07 authored Apr 2, 2024
1 parent 4cfb32f commit 74c4ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export async function loginUser(prevState: LoginFormState, formData: FormData):
const encodedData = new URLSearchParams(data as Record<string, string>).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"
Expand Down

0 comments on commit 74c4ea6

Please sign in to comment.