nuxt / nuxt

The Intuitive Vue Framework.
https://nuxt.com
MIT License
53.36k stars 4.88k forks source link

Layers: Server middlewares are no longer ordered by filename #26890

Open max06 opened 3 months ago

max06 commented 3 months ago

Environment

Reproduction

Describe the bug

The reproduction shows omega before alpha.

Additional context

Use case: Layer auth takes care about adding user information to event context. Main app middleware does rough access control by user role requiring that context.

I can add a repro next weekend if necessary.

Logs

No response

danielroe commented 3 months ago

This seems like a nitro behaviour change rather than Nuxt.

Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? 🙏

max06 commented 3 months ago

Yeah, I can do that! Will report back once I've got to this.