mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 17:26:17 +00:00
feat: Add Vercel serverless error reporting system
This commit is contained in:
@@ -2,15 +2,8 @@ import type { VercelRequest, VercelResponse } from '@vercel/node'
|
||||
|
||||
/**
|
||||
* Vercel Serverless Function for Error Reporting
|
||||
*
|
||||
* This endpoint receives error reports from Microsoft Rewards Bot instances
|
||||
* and forwards them to a centralized Discord webhook stored in environment variables.
|
||||
*
|
||||
* Environment Variables Required:
|
||||
* - DISCORD_ERROR_WEBHOOK_URL: Discord webhook URL for error reporting
|
||||
* - RATE_LIMIT_SECRET (optional): Secret key for bypassing rate limits (trusted clients)
|
||||
*
|
||||
* @see https://vercel.com/docs/functions/serverless-functions
|
||||
* Receives error reports and forwards to Discord webhook
|
||||
* Rate limited: 10 req/min/IP
|
||||
*/
|
||||
|
||||
interface ErrorReportPayload {
|
||||
|
||||
Reference in New Issue
Block a user