From 978bbba26b0dfc8f93246ad2daf6aba368ca31ab Mon Sep 17 00:00:00 2001 From: Saadi Myftija Date: Tue, 21 Jul 2026 19:21:47 +0200 Subject: [PATCH] fix(webapp): allow host.docker.internal on the Vite dev server Local docker builds and the dev build-server harness reach the dev webapp as host.docker.internal (e.g. the in-build indexer fetching env vars); Vite's default host blocking rejected those requests since the Vite migration. --- apps/webapp/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/webapp/vite.config.ts b/apps/webapp/vite.config.ts index 56ddae17c..d5e8d3a8d 100644 --- a/apps/webapp/vite.config.ts +++ b/apps/webapp/vite.config.ts @@ -75,6 +75,9 @@ export default defineConfig({ clientFiles: ["./app/entry.client.tsx", "./app/root.tsx", "./app/components/**/*.tsx"], ssrFiles: ["./app/entry.server.tsx", "./app/root.tsx"], }, + // Local docker builds (and the dev build-server harness) reach the dev webapp as + // host.docker.internal — e.g. the in-build indexer fetching env vars. + allowedHosts: ["host.docker.internal"], }, build: { sourcemap: true,