mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
f26a801775
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
606 B
606 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.
const route = useRoute()
prerenderRoutes('/')
prerenderRoutes(['/', '/about'])
::callout
In the browser, or if called outside prerendering, prerenderRoutes
will have no effect.
::