allowed_hosts hatası

This commit is contained in:
2025-11-27 18:56:28 +03:00
parent d82d81f0c9
commit 89a5f92339

View File

@@ -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 })
}
});