diff --git a/apps/dashboard/src/app/api/[...any]/route.tsx b/apps/dashboard/src/app/api/[...any]/route.tsx index e9a72c826..f2ca74573 100644 --- a/apps/dashboard/src/app/api/[...any]/route.tsx +++ b/apps/dashboard/src/app/api/[...any]/route.tsx @@ -1,8 +1,11 @@ +import { StackAssertionError, captureError } from "@stackframe/stack-shared/dist/utils/errors"; import { NextRequest, NextResponse } from "next/server"; const handler = async (req: NextRequest) => { + const msg = "Stack Auth's dashboard API is no longer available. Please upgrade the version of your Stack Auth client library, or join our Discord server for assistance: https://discord.stack-auth.com"; + captureError("old-dashboard-api", new StackAssertionError(msg, { req })); return NextResponse.json({ - error: "Stack Auth's dashboard API is no longer available. Please upgrade the version of your Stack Auth client library, or join our Discord server for assistance: https://discord.stack-auth.com", + error: msg, }, { status: 400, });