From 24c5af328f94bb3cba26121530406ee5ac124dfe Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 2 Oct 2023 22:36:00 +0100 Subject: [PATCH] fix(kit): revert accidental change to `addPrerenderRoutes` name (#23509) --- docs/3.api/4.advanced/2.kit.md | 2 +- packages/kit/src/nitro.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]