From 531b951ff2367528dbffb81e5ac9632012f9afcf Mon Sep 17 00:00:00 2001 From: Loco <89942527+locothedev@users.noreply.github.com> Date: Sun, 12 Jan 2025 18:01:36 +0700 Subject: [PATCH] fix: unauthorized.mdx unauthorized is not exported from `next/server` but from `next/navigation` --- .../04-api-reference/03-file-conventions/unauthorized.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/01-app/04-api-reference/03-file-conventions/unauthorized.mdx b/docs/01-app/04-api-reference/03-file-conventions/unauthorized.mdx index 52b46cb97463d..30b4c52150a46 100644 --- a/docs/01-app/04-api-reference/03-file-conventions/unauthorized.mdx +++ b/docs/01-app/04-api-reference/03-file-conventions/unauthorized.mdx @@ -66,7 +66,7 @@ export default async function DashboardPage() { ```jsx filename="app/dashboard/page.js" switcher import { verifySession } from '@/app/lib/dal' -import { unauthorized } from 'next/server' +import { unauthorized } from 'next/navigation' export default async function DashboardPage() { const session = await verifySession()