mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(kit): use route
instead of path
in ServerMiddleware
(#4139)
This commit is contained in:
parent
cc9714ff40
commit
f0714d78b0
@ -2,7 +2,7 @@ import type { Middleware } from 'h3'
|
||||
import { useNuxt } from './context'
|
||||
|
||||
export interface ServerMiddleware {
|
||||
path?: string,
|
||||
route?: string,
|
||||
handler: Middleware | string
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ export function viteNodePlugin (ctx: ViteBuildContext): VitePlugin {
|
||||
export function registerViteNodeMiddleware (ctx: ViteBuildContext) {
|
||||
addServerMiddleware({
|
||||
route: '/__nuxt_vite_node__/',
|
||||
handle: createViteNodeMiddleware(ctx)
|
||||
handler: createViteNodeMiddleware(ctx)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user