N
Nuxtβ€’10mo ago
oemer

How to keep order of global middlewares with Nuxt Layers?

It seems that Nuxt Layers won't follow alphabetical order of global middlewares. The layer that extends another layer will always call his middlewares first. I also found a related stackoverflow question which explains it in more detail: https://stackoverflow.com/questions/77826748/order-of-middlewares-in-nuxt3-layers
Stack Overflow
Order of middlewares in Nuxt3 layers
In my project I have a Nuxt layer B extending a Nuxt project A. I noticed that /middleware files are called in alphabetical order as should be but first all the middlewares of B and then all the
2 Replies
eunjae
eunjaeβ€’8mo ago
seems like the PR is almost ready πŸ™‚ https://github.com/nuxt/nuxt/pull/25906
GitHub
feat(nuxt): sort numbered middleware/plugins from all layers by mar...
πŸ”— Linked issue #25891 ❓ Type of change πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations) 🐞 Bug fix (a non-breaking change that fixes an issue) πŸ‘Œ Enhancement (improvi...
oemer
oemerOPβ€’8mo ago
Yep i also saw that, lets hope it's merged soon πŸ™‚
Want results from more Discord servers?
Add your server