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