Skip to content

Commit

Permalink
Make error handler debug page dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Nov 22, 2024
1 parent 32e32d5 commit 072bd62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
@@ -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()}`);
}

0 comments on commit 072bd62

Please sign in to comment.