Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NodeJS Switch between multiple Nodemon Config files

I have a nodejs project which is using nodemon for providing environment variables when running locally. I have a need to have the developers easily switch between two different nodemon config files (two different sets of environment variables). But I can't see a way to specify a config file for nodemon. How can I accomplish this.

like image 552
Mark S. Avatar asked Apr 13 '26 22:04

Mark S.


1 Answers

You can specify the config file using the --config flag:

https://github.com/remy/nodemon#config-files

like image 148
Bayan Bennett Avatar answered Apr 16 '26 15:04

Bayan Bennett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!