From 21873d40d5d97eb2b5229c368ba48a9a1c7d3380 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Thu, 9 Oct 2025 15:07:02 -0700 Subject: [PATCH] Devex: Improve dev server (#6002) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Keep Vite from watching extra files, should cut down on the amount of times it tries to reload and hopefully fix a file contention issue with git. https://vite.dev/config/server-options.html#server-watch ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6002-Devex-Improve-dev-server-2876d73d365081a09417c2bf17da659f) by [Unito](https://www.unito.io) --- vite.config.mts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/vite.config.mts b/vite.config.mts index 2dad24dc9..32de5f6ed 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -30,10 +30,19 @@ export default defineConfig({ host: VITE_REMOTE_DEV ? '0.0.0.0' : undefined, watch: { ignored: [ - '**/coverage/**', - '**/playwright-report/**', + './browser_tests/**', + './node_modules/**', + './tests-ui/**', + '.eslintcache', + '*.config.{ts,mts}', + '**/.git/**', + '**/.github/**', + '**/.nx/**', '**/*.{test,spec}.ts', - '*.config.{ts,mts}' + '**/coverage/**', + '**/dist/**', + '**/playwright-report/**', + '**/test-results/**' ] }, proxy: {