mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +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
|
||||
|
||||
```ts
|
||||
import { defineNuxtModule, prerenderRoutes } from '@nuxt/kit'
|
||||
import { defineNuxtModule, addPrerenderRoutes } from '@nuxt/kit'
|
||||
|
||||
export default defineNuxtModule({
|
||||
meta: {
|
||||
@ -353,7 +353,7 @@ export default defineNuxtModule({
|
||||
},
|
||||
setup(options) {
|
||||
if (options.prerender) {
|
||||
prerenderRoutes(options.sitemapUrl)
|
||||
addPrerenderRoutes(options.sitemapUrl)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user