From 74720af208dd83d6140310be61783533291dd704 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Thu, 20 Aug 2026 10:54:28 +0300 Subject: [PATCH] Update Vite configuration to serve on 127.0.0.1 for Tailscale compatibility, preventing connection issues on Windows. --- src/HSchool.Client/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HSchool.Client/vite.config.ts b/src/HSchool.Client/vite.config.ts index 49920f7..40abb17 100644 --- a/src/HSchool.Client/vite.config.ts +++ b/src/HSchool.Client/vite.config.ts @@ -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'],