mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user