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
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...
Yep i also saw that, lets hope it's merged soon π