Static GitHub Issues

[2697] How to get current stage in serverMiddleware?

prev: maxChunkSize used in build will break whole app
next: Import .jsx files without specifying extension

I have a serverMiddleware and some code there doesn't supposed to be launched while nuxt build, how i can know in what stage code is executing?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2344">#c2344</a>)</em></sub></div>