mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-09 00:56:16 +00:00
fix: Update error reporting URL to new Vercel project
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 = @{
|
||||
|
||||
Reference in New Issue
Block a user