We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9e27aa commit 5c0e40aCopy full SHA for 5c0e40a
cmd/workspace/apps/vite-server.js
@@ -48,6 +48,15 @@ async function startViteServer() {
48
clientPath
49
);
50
const userConfig = loadedConfig?.config ?? {};
51
+
52
+ /**
53
+ * Vite uses the same port for the HMR server as the main server.
54
+ * Allowing the user to set this option breaks the system.
55
+ * By just providing the port override option, Vite will use the same port for the HMR server.
56
+ * Multiple servers will work, but if the user has this in their config we need to delete it.
57
+ */
58
+ delete userConfig.server?.hmr?.port;
59
60
const coreConfig = {
61
configFile: false,
62
root: clientPath,
0 commit comments