Skip to content

Commit

Permalink
get the http2 example to work (vercel#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 <[email protected]>

Co-authored-by: Jan Potoms <[email protected]>
Co-authored-by: Joe Haddad <[email protected]>
  • Loading branch information
3 people authored and chibicode committed Feb 11, 2020
1 parent a498288 commit 4ca0bd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/with-http2/next.config.js
Original file line number Diff line number Diff line change
@@ -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 4ca0bd4

Please sign in to comment.