From c56cd0b6b0c69d2fb7c940aa023f05bb76f3185b Mon Sep 17 00:00:00 2001 From: LightZirconite Date: Fri, 2 Jan 2026 16:13:15 +0100 Subject: [PATCH] fix: Update error reporting URL to new Vercel project --- api/health.js | 2 +- src/util/notifications/ErrorReportingWebhook.ts | 2 +- test-error-reporting.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/health.js b/api/health.js index 7466d64..ec4278c 100644 --- a/api/health.js +++ b/api/health.js @@ -1,6 +1,6 @@ // Health check endpoint for Vercel module.exports = function handler(req, res) { - res.json({ + res.json({ status: 'ok', timestamp: new Date().toISOString(), endpoints: { diff --git a/src/util/notifications/ErrorReportingWebhook.ts b/src/util/notifications/ErrorReportingWebhook.ts index 4794587..720a044 100644 --- a/src/util/notifications/ErrorReportingWebhook.ts +++ b/src/util/notifications/ErrorReportingWebhook.ts @@ -187,7 +187,7 @@ export async function sendErrorReport( } // Determine API endpoint URL - const defaultApiUrl = 'https://rewards-bot-eight.vercel.app/api/report-error' + const defaultApiUrl = 'https://light-rewards-bot.vercel.app/api/report-error' const apiUrl = config.errorReporting?.apiUrl || defaultApiUrl const rateLimitSecret = config.errorReporting?.secret diff --git a/test-error-reporting.ps1 b/test-error-reporting.ps1 index f51cfe9..6dabaff 100644 --- a/test-error-reporting.ps1 +++ b/test-error-reporting.ps1 @@ -3,7 +3,7 @@ Write-Host "Testing Vercel Error Reporting System..." -ForegroundColor Cyan Write-Host "" -$apiUrl = "https://rewards-bot-eight.vercel.app/api/report-error" +$apiUrl = "https://light-rewards-bot.vercel.app/api/report-error" $timestamp = [DateTime]::UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.fffZ") $payload = @{