Skip to content

Commit

Permalink
docs: update staleTimes.mdx (vercel#72967)
Browse files Browse the repository at this point in the history
Fix mdx formatting. 

Previously MDX was not formatted correctly. (see image - `prefetch=`)

https://nextjs.org/docs/app/api-reference/next-config-js/staleTimes

<img width="659" alt="Screenshot 2024-11-19 at 15 11 57"
src="https://github.com/user-attachments/assets/44f77fd4-657e-409a-9190-9430fd96d5f8">

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
  • Loading branch information
kevinmitch14 and delbaoliveira authored Nov 21, 2024
1 parent 2fcb741 commit 4d652f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = nextConfig

The `static` and `dynamic` properties correspond with the time period (in seconds) based on different types of [link prefetching](/docs/app/api-reference/components/link#prefetch).

- The `dynamic` property is used when the page is neither statically generated nor fully prefetched (i.e., with prefetch={true}).
- The `dynamic` property is used when the page is neither statically generated nor fully prefetched (e.g. with `prefetch={true}`).
- Default: 0 seconds (not cached)
- The `static` property is used for statically generated pages, or when the `prefetch` prop on `Link` is set to `true`, or when calling [`router.prefetch`](/docs/app/building-your-application/caching#routerprefetch).
- Default: 5 minutes
Expand Down

0 comments on commit 4d652f7

Please sign in to comment.