fix(sendReport): remove API key requirement for bug report service configuration

This commit is contained in:
MasterAcnolo
2026-09-29 17:27:16 +02:00
parent 1937738ab8
commit 1e099f6bb6

View File

@@ -36,17 +36,13 @@ async function sendReport(params) {
} }
const reportUrl = process.env.BUG_REPORT_URL; const reportUrl = process.env.BUG_REPORT_URL;
const reportApiKey = process.env.BUG_REPORT_API_KEY;
if (!reportUrl || !reportApiKey) { if (!reportUrl) {
throw new Error("Bug report service is not configured. Missing BUG_REPORT_URL or BUG_REPORT_API_KEY on backend."); throw new Error("Bug report service is not configured. Missing BUG_REPORT_URL on backend.");
} }
const response = await fetch(reportUrl, { const response = await fetch(reportUrl, {
method: "POST", method: "POST",
headers: {
"X-Api-Key": reportApiKey
},
body: formData body: formData
}); });