From 59af6fce5feace7ef614acd630880f2f77cc9ac3 Mon Sep 17 00:00:00 2001 From: SebiVPS <42858722+SebiVPS@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:49:56 +0200 Subject: [PATCH] Adapt Vite dev server host option (#277) Change vite server host option from `host: "0.0.0.0"` to `host: true`. This fixes the local development for me. `admin-codegen` and `admin-block-codegen` kept waiting for `admin` microservice to start. https://vitejs.dev/config/server-options.html#server-host --- admin/vite.config.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/vite.config.mts b/admin/vite.config.mts index b865af253..824279564 100644 --- a/admin/vite.config.mts +++ b/admin/vite.config.mts @@ -47,7 +47,7 @@ export default defineConfig(({ mode }) => { }), ], server: { - host: "0.0.0.0", + host: true, port: Number(process.env.ADMIN_PORT), }, define: {