fix: sentry, img validation

This commit is contained in:
Aslam H
2024-09-10 20:03:25 +07:00
parent 7f2b594cb3
commit b7e7f79a40
6 changed files with 108 additions and 17 deletions

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