From 6fa552f1572a77f5d5dfcd8aa3820221ff646d29 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Wed, 11 Mar 2026 13:55:28 +0300 Subject: [PATCH] fix: remove --host from npm run server command Running `vite --host` exposes the dev server on all interfaces. However, we should expose it on all interfaces only when `HOST` is set to `0.0.0.0`. Otherwise, we should assume the user wants to bind to a host of their choice and not expose the server on the network. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4dcfc0e..3be1923 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "scripts": { "dev": "concurrently --kill-others \"npm run server\" \"npm run client\"", "server": "node server/index.js", - "client": "vite --host", + "client": "vite", "build": "vite build", "preview": "vite preview", "typecheck": "tsc --noEmit -p tsconfig.json",