mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(kit): revert accidental change to addPrerenderRoutes
name (#23509)
This commit is contained in:
parent
46114393f7
commit
24c5af328f
@ -88,7 +88,7 @@ description: Nuxt Kit provides composable utilities to help interacting with Nux
|
|||||||
- `addDevServerHandler (handler)`
|
- `addDevServerHandler (handler)`
|
||||||
- `useNitro()` (only usable after `ready` hook)
|
- `useNitro()` (only usable after `ready` hook)
|
||||||
- `addServerPlugin`
|
- `addServerPlugin`
|
||||||
- `prerenderRoutes`
|
- `addPrerenderRoutes`
|
||||||
|
|
||||||
### Resolving
|
### Resolving
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export function addServerPlugin (plugin: string) {
|
|||||||
/**
|
/**
|
||||||
* Adds routes to be prerendered
|
* Adds routes to be prerendered
|
||||||
*/
|
*/
|
||||||
export function prerenderRoutes (routes: string | string[]) {
|
export function addPrerenderRoutes (routes: string | string[]) {
|
||||||
const nuxt = useNuxt()
|
const nuxt = useNuxt()
|
||||||
if (!Array.isArray(routes)) {
|
if (!Array.isArray(routes)) {
|
||||||
routes = [routes]
|
routes = [routes]
|
||||||
|
Loading…
Reference in New Issue
Block a user