changed operator in vite.config.js (#13373)

Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.
This commit is contained in:
Daniil Oberlev
2025-05-04 03:56:28 +03:00
committed by GitHub
parent f0662e41f4
commit 208f4bcadc

View File

@@ -27,7 +27,7 @@ export default defineConfig({
clearScreen: false,
// tauri expects a fixed port, fail if that port is not available
server: {
host: host || false,
host: host ?? false,
port: 1420,
strictPort: true,
hmr: host