fluxy-bot 0.4.20 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/supervisor/vite-dev.ts +5 -2
package/package.json
CHANGED
package/supervisor/vite-dev.ts
CHANGED
|
@@ -12,7 +12,7 @@ export async function startViteDevServers(supervisorPort: number, hmrServer: htt
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
console.log(`[vite-dev] Starting dashboard Vite dev server on :${ports.dashboard}`);
|
|
15
|
-
console.log(`[vite-dev] HMR attached to supervisor server
|
|
15
|
+
console.log(`[vite-dev] HMR attached to supervisor server`);
|
|
16
16
|
console.log(`[vite-dev] PKG_DIR = ${PKG_DIR}`);
|
|
17
17
|
|
|
18
18
|
try {
|
|
@@ -23,7 +23,10 @@ export async function startViteDevServers(supervisorPort: number, hmrServer: htt
|
|
|
23
23
|
host: '127.0.0.1',
|
|
24
24
|
strictPort: true,
|
|
25
25
|
allowedHosts: true,
|
|
26
|
-
|
|
26
|
+
// HMR WebSocket is attached directly to the supervisor's HTTP server.
|
|
27
|
+
// No clientPort — the browser connects on the same origin the page is served from,
|
|
28
|
+
// so it works both locally (localhost:3000) and through the relay (riven.fluxy.bot:443).
|
|
29
|
+
hmr: { server: hmrServer },
|
|
27
30
|
},
|
|
28
31
|
logLevel: 'info',
|
|
29
32
|
});
|