hashicorp / next-remote-watch

Decorated local server for next.js that enables reloads from remote data changes
Mozilla Public License 2.0
353 stars 19 forks source link

Any way to ignore certain directories? #28

Open Svish opened 3 years ago

Svish commented 3 years ago

Tested out this package, and it worked very well, but a bit "too well". Watching a PHP project folder, and is there any way to ignore certain directories?

In my particular case I'd really like to not trigger reloads related to .git/ or .cache/.

If this is possible somehow, it would be great if an example could be added to the README, as I'm sure I'm not the only one who'd like to ignore the .git/ directory for example.