Skip to content

Commit 208f4bc

Browse files
changed operator in vite.config.js (#13373)
Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.
1 parent f0662e4 commit 208f4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/api/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
clearScreen: false,
2828
// tauri expects a fixed port, fail if that port is not available
2929
server: {
30-
host: host || false,
30+
host: host ?? false,
3131
port: 1420,
3232
strictPort: true,
3333
hmr: host

0 commit comments

Comments
 (0)