Static GitHub Issues

[2931] nuxt.render documentation is wrong at production level

prev: Dynamic route without index file
next: Compilation successful in negative duration

At this page, the request and response in nuxt.render(req, res) are linked to nodejs standard module http.

However in the production env, nuxt uses Gzip compression with compression that is built for express.

See https://github.com/nuxt/nuxt.js/blob/dev/lib/core/renderer.js#L217

So nuxt gets below error when using with http

I just want the document's request, response link to be modified to connect not http. Keep us from being confused.

<!--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/c2546">#c2546</a>)</em></sub></div>