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: {