From 8609f1c189b137ef2175a5e7da2d3d8265098feb Mon Sep 17 00:00:00 2001 From: Greg Kowalski Date: Fri, 16 Nov 2018 00:17:02 -0800 Subject: [PATCH] adding patch workaround as per suggestion https://github.com/webpack/webpack-dev-server/issues/1491#issuecomment-420541511 --- patches/react-scripts+2.1.1.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/patches/react-scripts+2.1.1.patch b/patches/react-scripts+2.1.1.patch index 98ec7ad..846eda2 100644 --- a/patches/react-scripts+2.1.1.patch +++ b/patches/react-scripts+2.1.1.patch @@ -10,3 +10,30 @@ patch-package // These are the "entry points" to our application. // This means they will be the "root" imports that are included in JS bundle. entry: [ + +--- a/node_modules/react-scripts/config/webpackDevServer.config.js ++++ b/node_modules/react-scripts/config/webpackDevServer.config.js +@@ -18,6 +18,14 @@ + + const protocol = process.env.HTTPS === 'true' ? 'https' : 'http'; + const host = process.env.HOST || '0.0.0.0'; ++let httpsOptions = undefined; ++if (protocol === 'https') { ++ httpsOptions = { ++ spdy: { ++ protocols: ['http/1.1'] ++ } ++ } ++} + + module.exports = function(proxy, allowedHost) { + return { +@@ -81,7 +89,7 @@ + ignored: ignoredFiles(paths.appSrc), + }, + // Enable HTTPS if the HTTPS environment variable is set to 'true' +- https: protocol === 'https', ++ https: httpsOptions, + host, + overlay: false, + historyApiFallback: {