From 89a5f9233923b1abbf1695c8b350e947c0a64c3d Mon Sep 17 00:00:00 2001 From: sbilketay Date: Thu, 27 Nov 2025 18:56:28 +0300 Subject: [PATCH] =?UTF-8?q?allowed=5Fhosts=20hatas=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index e5fa1ed..326d1da 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -8,6 +8,7 @@ export default defineConfig({ server: { port: 5173, host: true, - ...(allowedHosts?.length ? { allowedHosts } : {}) + // Env ile host kısıtı verilmişse uygula, yoksa tüm hostlara izin ver + ...(allowedHosts?.length ? { allowedHosts } : { allowedHosts: true }) } });