mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 10:48:16 +00: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:
parent
f0662e41f4
commit
208f4bcadc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user