This commit is contained in:
afred
2024-12-11 14:40:14 +08:00
parent d59ce78078
commit 2602f9be54
11 changed files with 1360 additions and 29 deletions

View File

@@ -0,0 +1,9 @@
import { NextResponse } from "next/server";
export const dynamic = "force-dynamic";
// A faulty API route to test Sentry's error monitoring
export function GET() {
throw new Error("Sentry Example API Route Error");
return NextResponse.json({ data: "Testing Sentry Error..." });
}