| 2 | |
| 3 | export const dynamic = "force-dynamic"; |
| 4 | class SentryExampleAPIError extends Error { |
| 5 | constructor(message: string | undefined) { |
| 6 | super(message); |
| 7 | this.name = "SentryExampleAPIError"; |
| 8 | } |
| 9 | } |
| 10 | // A faulty API route to test Sentry's error monitoring |
| 11 | export function GET() { |
| 12 | throw new SentryExampleAPIError("This error is raised on the backend called by the example page."); |
nothing calls this directly
no outgoing calls
no test coverage detected