From 46d7fcc2d20837b8e060e5af8a03e23561856365 Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Mon, 15 Jun 2026 08:19:42 -0400 Subject: [PATCH] chore(pwa): allow internal split-DNS host on the vite dev server Add .bergerhouse.net (apex + subdomains) to server.allowedHosts so the dev PWA is reachable through the reverse proxy / tunnel (e.g. familysync-dev.bergerhouse.net). Dev-server only; production builds ignore it. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/pwa/vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/pwa/vite.config.ts b/apps/pwa/vite.config.ts index 19f835d..3182c98 100644 --- a/apps/pwa/vite.config.ts +++ b/apps/pwa/vite.config.ts @@ -44,6 +44,10 @@ export default defineConfig({ }), ], server: { + // Allow the internal split-DNS domain (and any subdomain) to reach the dev + // server through the reverse proxy / tunnel. A leading dot matches the apex + // and all subdomains. Dev-server only — production builds ignore this. + allowedHosts: ['.bergerhouse.net'], proxy: { '/health': 'http://localhost:3000', '/api': 'http://localhost:3000',