Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Windows: stop Vite from watching target/ (EBUSY crash on tauri dev)

Andrev-9132484d449fa6
diff --git a/windows/vite.config.ts b/windows/vite.config.ts
index 1ff3b656..46c91cc3 100644
--- a/windows/vite.config.ts
+++ b/windows/vite.config.ts
@@ -45,7 +45,14 @@ function sharedSounds(): Plugin {
export default defineConfig({
plugins: [sharedSounds()],
clearScreen: false,
- server: { port: 1420, strictPort: true, host: "127.0.0.1" },
+ server: {
+ port: 1420,
+ strictPort: true,
+ host: "127.0.0.1",
+ // Cargo writes and locks files under target/ while Vite starts; watching them
+ // crashes Vite on Windows with EBUSY. Tauri watches src-tauri/ itself.
+ watch: { ignored: ["**/target/**", "**/src-tauri/**"] },
+ },
envPrefix: ["VITE_", "TAURI_ENV_"],
build: {
target: "chrome110",