Update Vite configuration to serve on 127.0.0.1 for Tailscale compatibility, preventing connection issues on Windows.
ci / server (push) Failing after 3m40s
ci / client (push) Successful in 17s

This commit is contained in:
Leonid Pershin
2026-08-20 10:54:28 +03:00
parent d52f784e5e
commit 74720af208
+3
View File
@@ -10,6 +10,9 @@ const tailscaleServe = process.env.HSCHOOL_TAILSCALE_SERVE === '1';
export default defineConfig({
server: {
// Serve proxies to 127.0.0.1:5173. Default `localhost` binds [::1] only on
// Windows, so Tailscale gets connection refused and the browser shows 502.
host: '127.0.0.1',
port: 5173,
strictPort: true,
allowedHosts: ['.ts.net'],