docs: add note about prerenderRoutes in dynamic routes (#26547)

This commit is contained in:
Pothuraju 2024-03-29 18:08:44 +05:30 committed by GitHub
parent b5e413fec9
commit 50c92fbe6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()