Skip to content

Commit

Permalink
fix: unauthorized.mdx
Browse files Browse the repository at this point in the history
unauthorized is not exported from `next/server` but from `next/navigation`
  • Loading branch information
locothedev authored Jan 12, 2025
1 parent cf233c1 commit 531b951
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 531b951

Please sign in to comment.