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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
a8d6142566
commit
46d7fcc2d2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user