Skip to content

Commit

Permalink
docs: fix code block language
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 committed Nov 15, 2024
1 parent e487b9f commit 084ab07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errors/next-dynamic-api-wrong-context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Make sure that all Dynamic API calls happen in a request scope.

Example:

```jsx filename="app/page.js"
```diff filename="app/page.js"
import { cookies } from 'next/headers'

- const cookieStore = cookies()
Expand All @@ -24,7 +24,7 @@ export default function Page() {
}
```

```jsx filename="app/foo/route.js"
```diff filename="app/foo/route.js"
import { headers } from 'next/headers'

- const headersList = headers()
Expand Down

0 comments on commit 084ab07

Please sign in to comment.