mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
737 B
737 B
title | description | links | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
prerenderRoutes | prerenderRoutes hints to Nitro to prerender an additional route. |
|
When prerendering, you can hint to Nitro to prerender additional paths, even if their URLs do not show up in the HTML of the generated page.
::callout
prerenderRoutes
can only be called within the Nuxt context.
::
const route = useRoute()
prerenderRoutes('/')
prerenderRoutes(['/', '/about'])
::callout
In the browser, or if called outside prerendering, prerenderRoutes
will have no effect.
::