fix: undefined issue

This commit is contained in:
dvelo 2025-01-13 21:25:07 -06:00
parent e9b448658a
commit 2dda77e9ee

@ -77,10 +77,7 @@ export default async function handler(
"sec-fetch-site": "cross-site", "sec-fetch-site": "cross-site",
Referer: "http://localhost:3000/", Referer: "http://localhost:3000/",
"Referrer-Policy": "strict-origin-when-cross-origin", "Referrer-Policy": "strict-origin-when-cross-origin",
Authentication: Authentication: `MHSF-Backend-Server ${process.env.MHSF_BACKEND_API_LOCATION ? process.env.MHSF_BACKEND_SECRET : "Sorry Minehut Devs."}`,
process.env.MHSF_BACKEND_SECRET !== undefined
? `MHSF-Backend-Server ${process.env.MHSF_BACKEND_SECRET}`
: undefined,
}, },
body: null, body: null,
method: "GET", method: "GET",