Home

Issue: 273

Should nuxtServerInit run before middleware?

[issue link]

I was surprised to see nuxtServerInit running before my projects middleware. I was attempting to add some information to the context within my middleware and then make use of it inside nuxtServerInit.

I was able to work around this by moving my middleware logic directly inside of nuxtServerInit.

Is the order in which these run currently intentional?

This question is available on Nuxt.js community (#c235)