From 4ca0bd41e7ea6154a531539a2347a3bb386bbc7f Mon Sep 17 00:00:00 2001 From: Vinci Rufus Date: Mon, 10 Feb 2020 04:05:53 +0000 Subject: [PATCH] get the http2 example to work (#10470) * 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 --- examples/with-http2/next.config.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/with-http2/next.config.js diff --git a/examples/with-http2/next.config.js b/examples/with-http2/next.config.js new file mode 100644 index 000000000000000..a50ddf389e478b1 --- /dev/null +++ b/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, +}