From 208f4bcadc1c5dbae1ccf3e0f3de487c4ff79a77 Mon Sep 17 00:00:00 2001 From: Daniil Oberlev <134169579+Daniil-Oberlev@users.noreply.github.com> Date: Sun, 4 May 2025 03:56:28 +0300 Subject: [PATCH] changed operator in vite.config.js (#13373) Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator. --- examples/api/vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api/vite.config.js b/examples/api/vite.config.js index d3763b5cd..f519ad7b8 100644 --- a/examples/api/vite.config.js +++ b/examples/api/vite.config.js @@ -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