From 2456dcaccccb4fcd34ce91c2fe67c05d3e44e482 Mon Sep 17 00:00:00 2001 From: log101 Date: Mon, 29 Jul 2024 21:52:05 +0300 Subject: [PATCH] feat: hardcode env --- src/scripts/index.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/scripts/index.ts b/src/scripts/index.ts index 54eec48..486162b 100644 --- a/src/scripts/index.ts +++ b/src/scripts/index.ts @@ -44,13 +44,10 @@ const handleSubmit = async (e: SubmitEvent) => { const formData = new FormData(e.target as HTMLFormElement) - const res = await fetch( - `${import.meta.env.PUBLIC_BACKEND_URL}/api/location`, - { - method: "POST", - body: formData, - } - ) + const res = await fetch(`https://konulukonum.log101.dev/api/location`, { + method: "POST", + body: formData, + }) if (res.status === 200) { const data = await res.json()