mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +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') {
|
if (typeof handle !== 'string' || typeof route !== 'string') {
|
||||||
legacyMiddleware.push(m)
|
legacyMiddleware.push(m)
|
||||||
} else {
|
} else {
|
||||||
|
delete m.handler
|
||||||
|
delete m.path
|
||||||
middleware.push({
|
middleware.push({
|
||||||
...m,
|
...m,
|
||||||
handle: resolvePath(handle),
|
handle: resolvePath(handle),
|
||||||
|
Loading…
Reference in New Issue
Block a user