Closed manniL closed 6 years ago
I do believe it's a bad practice and bring too much complexity of handling edge cases...
@manniL I see that this has been denied. I've just spent 14 hours trying to figure out why the serverMiddleware is not executing in production. Could you please make a note in the documentation about this? Seems like it's 1 line and would take a few seconds....
@garrensweet That would be a perfect opportunity for a PR, right? :thinking: The documentation is editable for everyone :relaxed: ( https://github.com/nuxt/docs/blob/master/en/api/configuration-servermiddleware.md )
@manniL I believe I've already beat you to that ;)
Hey 👋
Would it be clever to move the used
serverMiddleware
in theserver
dist folder as well? (If not we should at least note that they have to be copied as well for deployment)Pros:
Cons:
related: https://github.com/nuxt/nuxt.js/issues/3948