fix: undefined issue

This commit is contained in:
dvelo 2025-01-13 21:26:02 -06:00 committed by GitHub
commit 4f60dde126
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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",