Skip to content

Commit

Permalink
fix: revert only watch .env files in envDir (#12587) (#13217)
Browse files Browse the repository at this point in the history
Co-authored-by: Bartek Iwańczuk <bartlomieju@users.noreply.github.com>
  • Loading branch information
patak-dev and bartlomieju committed May 16, 2023
1 parent 9a42e31 commit 0fd4616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -366,7 +366,7 @@ export async function _createServer(

const watcher = chokidar.watch(
// config file dependencies and env file might be outside of root
[root, ...config.configFileDependencies, path.join(config.envDir, '.env*')],
[root, ...config.configFileDependencies, config.envDir],
resolvedWatchOptions,
) as FSWatcher

Expand Down

0 comments on commit 0fd4616

Please sign in to comment.