mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 07:36:39 +08:00
10 lines
286 B
TypeScript
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..." });
|
|
}
|