Skip to content

Commit a37fc67

Browse files
committed
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.
1 parent 89f0627 commit a37fc67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/webapp/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export default defineConfig({
3434
clientFiles: ["./app/entry.client.tsx", "./app/root.tsx", "./app/components/**/*.tsx"],
3535
ssrFiles: ["./app/entry.server.tsx", "./app/root.tsx"],
3636
},
37+
// Local docker builds (and the dev build-server harness) reach the dev webapp as
38+
// host.docker.internal — e.g. the in-build indexer fetching env vars.
39+
allowedHosts: ["host.docker.internal"],
3740
},
3841
build: {
3942
sourcemap: true,

0 commit comments

Comments
 (0)