Skip to content

Commit 68e5c37

Browse files
committed
fix error message
1 parent 592d259 commit 68e5c37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dashboard/src/app/api/[...any]/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NextRequest, NextResponse } from "next/server";
33
import '../../../polyfills';
44

55
const handler = async (req: NextRequest) => {
6-
const msg = "You attempted to access /api on the Stack Auth dashboard URL, instead of the API URL. Did you mean to access https://api.stack-auth.com/api instead?\n\nFor more guidance, please join our Discord server for assistance: https://discord.stack-auth.com";
6+
const msg = "You attempted to access /api on the Stack Auth dashboard URL, instead of the API URL. Did you mean to access https://api.stack-auth.com/api instead (with an I instead of a P)?\n\nFor more guidance, please join our Discord server for assistance: https://discord.stack-auth.com";
77
console.warn(`${req.headers.has('x-stack-project-id') ? `Project ${req.headers.get('x-stack-project-id')}` : "A user"} attempted to access the old dashboard API.`, nicify(req));
88
return NextResponse.json({
99
error: msg,

0 commit comments

Comments
 (0)