mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Sentry (#157)
* . * add sentry * prettier * up packages * no edge sentry --------- Co-authored-by: Aslam H <iupin5212@gmail.com>
This commit is contained in:
9
web/app/api/sentry-example-api/route.ts
Normal file
9
web/app/api/sentry-example-api/route.ts
Normal 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..." })
|
||||
}
|
||||
Reference in New Issue
Block a user