fix(kit): revert accidental change to addPrerenderRoutes name (#23509)

This commit is contained in:
Daniel Roe 2023-10-02 22:36:00 +01:00 committed by GitHub
parent 46114393f7
commit 24c5af328f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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]