Exclude the 'backend' folder from the Vite watcher.

This avoids unnecessary reloads when working on the backend.
This commit is contained in:
Duncan Ogilvie 2025-06-08 14:58:56 +02:00
parent 2b9c466bed
commit 41220b379f

View file

@ -35,7 +35,10 @@ export default defineConfig({
APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build') APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build')
}, },
build: { build: {
sourcemap: true sourcemap: true,
watch: {
exclude: ['backend']
}
}, },
worker: { worker: {
format: 'es' format: 'es'