docs: fix imported addPrerenderRoutes name (#24102)

This commit is contained in:
Andrey Yolkin 2023-11-03 17:15:24 +03:00 committed by GitHub
parent 91ee969b1b
commit a1e7bf9710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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