mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-11 01:36: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
|
// Health check endpoint for Vercel
|
||||||
module.exports = function handler(req, res) {
|
module.exports = function handler(req, res) {
|
||||||
res.json({
|
res.json({
|
||||||
status: 'ok',
|
status: 'ok',
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
endpoints: {
|
endpoints: {
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ export async function sendErrorReport(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Determine API endpoint URL
|
// 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 apiUrl = config.errorReporting?.apiUrl || defaultApiUrl
|
||||||
const rateLimitSecret = config.errorReporting?.secret
|
const rateLimitSecret = config.errorReporting?.secret
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Write-Host "Testing Vercel Error Reporting System..." -ForegroundColor Cyan
|
Write-Host "Testing Vercel Error Reporting System..." -ForegroundColor Cyan
|
||||||
Write-Host ""
|
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")
|
$timestamp = [DateTime]::UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.fffZ")
|
||||||
|
|
||||||
$payload = @{
|
$payload = @{
|
||||||
|
|||||||
Reference in New Issue
Block a user