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.
This commit is contained in:
Saadi Myftija
2026-07-21 19:21:47 +02:00
parent d7fb9ba6d7
commit 978bbba26b
+3
View File
@@ -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,