diff --git a/docs/3.api/4.advanced/2.kit.md b/docs/3.api/4.advanced/2.kit.md index 811b95fa8e..25d4cd3c3b 100644 --- a/docs/3.api/4.advanced/2.kit.md +++ b/docs/3.api/4.advanced/2.kit.md @@ -88,7 +88,7 @@ description: Nuxt Kit provides composable utilities to help interacting with Nux - `addDevServerHandler (handler)` - `useNitro()` (only usable after `ready` hook) - `addServerPlugin` -- `prerenderRoutes` +- `addPrerenderRoutes` ### Resolving diff --git a/packages/kit/src/nitro.ts b/packages/kit/src/nitro.ts index 5aaf6194c6..66374a9d04 100644 --- a/packages/kit/src/nitro.ts +++ b/packages/kit/src/nitro.ts @@ -45,7 +45,7 @@ export function addServerPlugin (plugin: string) { /** * Adds routes to be prerendered */ -export function prerenderRoutes (routes: string | string[]) { +export function addPrerenderRoutes (routes: string | string[]) { const nuxt = useNuxt() if (!Array.isArray(routes)) { routes = [routes]