From 750163ee6d593cbfe73d8bbe79b43c915d5e9e82 Mon Sep 17 00:00:00 2001 From: Tim DiLauro Date: Sat, 22 Jun 2024 13:42:33 -0400 Subject: [PATCH] dev-server handles relative redirects without crashing. --- webpack.dev-server.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.dev-server.config.js b/webpack.dev-server.config.js index d166deedc..a6ffc307b 100644 --- a/webpack.dev-server.config.js +++ b/webpack.dev-server.config.js @@ -67,7 +67,7 @@ module.exports = (env) => { return; } - const locationUrl = new URL(location); + const locationUrl = new URL(location, backendUrl); if (locationUrl.host !== backendUrl.host) { return;