From 1b149c812870d08afcaf6c083ad88bb3599dbb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Zori=C4=87?= Date: Mon, 9 Dec 2024 14:16:57 +0100 Subject: [PATCH] fix(project-utils): webpack dev server --- .../bundling/app/config/webpackDevServer.config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/project-utils/bundling/app/config/webpackDevServer.config.js b/packages/project-utils/bundling/app/config/webpackDevServer.config.js index a589753fee0..ea8383ea8c2 100644 --- a/packages/project-utils/bundling/app/config/webpackDevServer.config.js +++ b/packages/project-utils/bundling/app/config/webpackDevServer.config.js @@ -3,6 +3,15 @@ const fs = require("fs"); module.exports = function ({ host, port, https, allowedHost, proxy, paths }) { + let server = {}; + if (https) { + server = { + type: "https", + options: { + requestCert: false + } + }; + } return { host, port, @@ -43,7 +52,7 @@ module.exports = function ({ host, port, https, allowedHost, proxy, paths }) { publicPath: "/" }, // Enable HTTPS if the HTTPS environment variable is set to 'true' - https, + ...server, client: { overlay: true, // Silence WebpackDevServer's own logs since they're generally not useful.