allowed_hosts hatası
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user