feat: hardcode env
All checks were successful
/ Build (push) Successful in 38s

This commit is contained in:
log101 2024-07-29 21:52:05 +03:00
parent 9674be37cf
commit 2456dcaccc

View File

@ -44,13 +44,10 @@ const handleSubmit = async (e: SubmitEvent) => {
const formData = new FormData(e.target as HTMLFormElement) const formData = new FormData(e.target as HTMLFormElement)
const res = await fetch( const res = await fetch(`https://konulukonum.log101.dev/api/location`, {
`${import.meta.env.PUBLIC_BACKEND_URL}/api/location`,
{
method: "POST", method: "POST",
body: formData, body: formData,
} })
)
if (res.status === 200) { if (res.status === 200) {
const data = await res.json() const data = await res.json()