From cbe861ff2718945e458cc7e18841a635eb4d518e Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Wed, 17 Jun 2026 11:57:24 +0700 Subject: [PATCH] fix: use allowedHosts=true (boolean), disable open in container --- frontend/vite.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 6e40ebe..713daff 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -13,10 +13,9 @@ export default defineConfig({ }, server: { port: 3000, - open: true, - allowedHosts: process.env.VITE_ALLOWED_HOSTS - ? process.env.VITE_ALLOWED_HOSTS.split(',') - : 'all', + host: '0.0.0.0', + open: false, + allowedHosts: true, proxy: { '/api': { target: 'http://localhost:5001',