mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Make error handler debug page dynamic
This commit is contained in:
parent
32e32d502a
commit
072bd623a4
@ -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({
|
||||
|
||||
@ -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()}`);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user