mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix(nitro): sort middleware fron long to short
This commit is contained in:
parent
a82e7b9008
commit
03173075da
@ -31,7 +31,7 @@ function filesToMiddleware (files: string[], baseDir: string, basePath: string,
|
||||
handle
|
||||
}
|
||||
})
|
||||
.sort((a, b) => a.route.localeCompare(b.route))
|
||||
.sort((a, b) => b.route.localeCompare(a.route))
|
||||
.map(m => ({ ...m, ...overrides }))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user