From 41220b379f6e5c123936b97a4b02920c261700b7 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sun, 8 Jun 2025 14:58:56 +0200 Subject: [PATCH] Exclude the 'backend' folder from the Vite watcher. This avoids unnecessary reloads when working on the backend. --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index ed690f5023..6c5bbb8511 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,7 +35,10 @@ export default defineConfig({ APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build') }, build: { - sourcemap: true + sourcemap: true, + watch: { + exclude: ['backend'] + } }, worker: { format: 'es'