From 0d0e6901b9a9ae3d995e654e039a1d2ae749151d Mon Sep 17 00:00:00 2001 From: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> Date: Wed, 1 Jul 2026 17:35:26 +0300 Subject: [PATCH] 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. --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 9aa0e07..3e065f3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,8 +3,12 @@ import { defineConfig } from "vite"; export default defineConfig({ clearScreen: false, server: { + host: "127.0.0.1", port: 1420, strictPort: true, + watch: { + ignored: ["**/src-tauri/**"], + }, }, build: { target: "es2022",