Files
linsa-linsa-io/web/app/api/sentry-example-api/route.ts
2024-09-10 20:03:25 +07:00

10 lines
286 B
TypeScript

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..." });
}