feat(frontend): add a dedicated 403 forbidden page

Show /403 instead of toasting or staying on the denied screen when
the API returns 403 or a non-admin opens an admin route.
This commit is contained in:
ryan
2026-09-02 18:39:11 +08:00
parent b7e5e811d1
commit 05606dfb56
9 changed files with 129 additions and 9 deletions
+7
View File
@@ -0,0 +1,7 @@
'use client';
import { ForbiddenPage } from '@/components/layout/forbidden-page';
export default function ForbiddenRoutePage() {
return <ForbiddenPage />;
}
+8
View File
@@ -0,0 +1,8 @@
'use client';
import { ForbiddenPage } from '@/components/layout/forbidden-page';
/** Next.js convention: rendered when forbidden() is called. */
export default function Forbidden() {
return <ForbiddenPage />;
}