Skip to content

Commit

Permalink
get the http2 example to work (#10470)
Browse files Browse the repository at this point in the history
* copy only the necessary files during stage 2 in multi-stage.

* update readme

* adds  compress:false to prevent the server from crashing while running http2

* moving the config to next.config

* link to the issue

* fix grammatical error

* Update examples/with-http2/next.config.js

Co-Authored-By: Jan Potoms <2109932+Janpot@users.noreply.github.com>

Co-authored-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
3 people committed Feb 10, 2020
1 parent e382997 commit a33e365
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/with-http2/next.config.js
@@ -0,0 +1,6 @@
module.exports = {
/* this needs to be set to false until a bug in the compression npm module gets fixed.
reference: https://github.com/expressjs/compression/issues/122
*/
compress: false,
}

0 comments on commit a33e365

Please sign in to comment.