mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
docs: fix code block language (#72839)
## Summary Change `jsx` to `diff` in [next-dynamic-api-wrong-context](https://github.com/vercel/next.js/blob/canary/errors/next-dynamic-api-wrong-context.mdx) error page. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide Co-authored-by: Delba de Oliveira <[email protected]>
This commit is contained in:
co-authored by
Delba de Oliveira
parent
55834d982a
commit
2a4bdbd4ab
@@ -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()
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user