fix vite dev server: bind 127.0.0.1, ignore src-tauri/target

Vite defaulted to an IPv6-only bind, so tauri dev's readiness probe
(which checks 127.0.0.1) waited forever even though Vite was up.
Separately, its file watcher was watching Rust's build output and
crashed on a locked .pdb file mid-compile.
This commit is contained in:
Horizontal42 2026-07-01 17:35:26 +03:00
parent f33381adc2
commit 0d0e6901b9

View file

@ -3,8 +3,12 @@ import { defineConfig } from "vite";
export default defineConfig({ export default defineConfig({
clearScreen: false, clearScreen: false,
server: { server: {
host: "127.0.0.1",
port: 1420, port: 1420,
strictPort: true, strictPort: true,
watch: {
ignored: ["**/src-tauri/**"],
},
}, },
build: { build: {
target: "es2022", target: "es2022",