Skip to content

Commit d8b40df

Browse files
authored
Ignore .claude in dev server file watcher (#3428)
Agent notes under `.claude` can be HTML, which Vite takes very seriously.
1 parent 12bb33e commit d8b40df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎vite.config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ export default defineConfig(({ mode }) => ({
142142
server: {
143143
port: 4000,
144144
headers: devHeaders,
145+
// agent notes under .claude can be HTML, and any HTML change in the root
146+
// triggers a full page reload
147+
watch: { ignored: ['**/.claude/**'] },
145148
// these only get hit when MSW doesn't intercept the request
146149
proxy: {
147150
'/v1': {

0 commit comments

Comments
 (0)