Skip to content

Commit

Permalink
Adapt Vite dev server host option (#277)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SebiVPS authored Jul 4, 2024
1 parent 3de6c9f commit 59af6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default defineConfig(({ mode }) => {
}),
],
server: {
host: "0.0.0.0",
host: true,
port: Number(process.env.ADMIN_PORT),
},
define: {
Expand Down

0 comments on commit 59af6fc

Please sign in to comment.