Skip to content

Commit 0fd4616

Browse files
patak-devbartlomieju
andauthoredMay 16, 2023
fix: revert only watch .env files in envDir (#12587) (#13217)
Co-authored-by: Bartek Iwańczuk <bartlomieju@users.noreply.github.com>
1 parent 9a42e31 commit 0fd4616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/server/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export async function _createServer(
366366

367367
const watcher = chokidar.watch(
368368
// config file dependencies and env file might be outside of root
369-
[root, ...config.configFileDependencies, path.join(config.envDir, '.env*')],
369+
[root, ...config.configFileDependencies, config.envDir],
370370
resolvedWatchOptions,
371371
) as FSWatcher
372372

0 commit comments

Comments
 (0)
Please sign in to comment.