mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: fix imported addPrerenderRoutes
name (#24102)
This commit is contained in:
parent
91ee969b1b
commit
a1e7bf9710
@ -340,7 +340,7 @@ A route or an array of routes to prerender.
|
|||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { defineNuxtModule, prerenderRoutes } from '@nuxt/kit'
|
import { defineNuxtModule, addPrerenderRoutes } from '@nuxt/kit'
|
||||||
|
|
||||||
export default defineNuxtModule({
|
export default defineNuxtModule({
|
||||||
meta: {
|
meta: {
|
||||||
@ -353,7 +353,7 @@ export default defineNuxtModule({
|
|||||||
},
|
},
|
||||||
setup(options) {
|
setup(options) {
|
||||||
if (options.prerender) {
|
if (options.prerender) {
|
||||||
prerenderRoutes(options.sitemapUrl)
|
addPrerenderRoutes(options.sitemapUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user