Files
linsa-linsa-io/web/app/api/sentry-example-api/route.ts
Nikita 9e28aa5995 Sentry (#157)
* .

* add sentry

* prettier

* up packages

* no edge sentry

---------

Co-authored-by: Aslam H <iupin5212@gmail.com>
2024-09-10 18:18:37 +07:00

10 lines
280 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..." })
}