Skip to content

Commit

Permalink
docs: add note about prerenderRoutes in dynamic routes (#26547)
Browse files Browse the repository at this point in the history
  • Loading branch information
pothuraju-dev committed Mar 29, 2024
1 parent b5e413f commit 50c92fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/3.api/3.utils/prerender-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ When prerendering, you can hint to Nitro to prerender additional paths, even if
`prerenderRoutes` can only be called within the [Nuxt context](/docs/guide/going-further/nuxt-app#the-nuxt-context).
::

::note
`prerenderRoutes` has to be executed during prerendering. If the `prerenderRoutes` is used in dynamic pages/routes which are not prerendered, then it will not be executed.
::

```js
const route = useRoute()

Expand Down

0 comments on commit 50c92fb

Please sign in to comment.