Skip to content

Commit 70bfed7

Browse files
authored
fix(assets): watcher (#455)
1 parent 371641f commit 70bfed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools/src/server-rpc/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh }: NuxtDevtoo
1717
}, 500)
1818

1919
nuxt.hook('builder:watch', (event, key) => {
20-
if (key.startsWith(publicDir) && (event === 'add' || event === 'unlink'))
20+
if (key.startsWith(nuxt.options.dir.public) && (event === 'add' || event === 'unlink'))
2121
refreshDebounced()
2222
})
2323

0 commit comments

Comments
 (0)