Make error handler debug page dynamic

This commit is contained in:
Konstantin Wohlwend 2024-11-22 19:13:27 +01:00
parent 32e32d502a
commit 072bd623a4
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@ import { createSmartRouteHandler } from "@/route-handlers/smart-route-handler";
import { yupNumber, yupObject, yupString } from "@stackframe/stack-shared/dist/schema-fields";
import { StackAssertionError } from "@stackframe/stack-shared/dist/utils/errors";
export const dynamic = "force-dynamic";
export const GET = createSmartRouteHandler({
request: yupObject({}),
response: yupObject({

View File

@ -1,5 +1,7 @@
import { StackAssertionError } from "@stackframe/stack-shared/dist/utils/errors";
export const dynamic = "force-dynamic";
export function GET() {
throw new StackAssertionError(`Server debug error thrown successfully! ${Math.random()}`);
}