mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(resolveMiddleware): remove legacy handler and path props
This commit is contained in:
parent
29409f064f
commit
5e6fb802f3
@ -61,6 +61,8 @@ export function resolveMiddleware (serverMiddleware: any[], resolvePath: (string
|
||||
if (typeof handle !== 'string' || typeof route !== 'string') {
|
||||
legacyMiddleware.push(m)
|
||||
} else {
|
||||
delete m.handler
|
||||
delete m.path
|
||||
middleware.push({
|
||||
...m,
|
||||
handle: resolvePath(handle),
|
||||
|
Loading…
Reference in New Issue
Block a user