Next.js Discord

Discord Forum

Automatically run a script when a specific file is modified and saved?

Answered
dperolio posted this in #help-forum
Open in Discord
Avatar
Is it possible to set it up so I can run a package.json script automatically when a certain file is modified and saved? e.g. I have a schema file and generate Firebase rules from that file. If the schema file is updated, I want to generate new Firebase rules as well.
Answered by dperolio
Would I just use something like nodemon/chokidar/watch and run it concurrently with next dev, or is there some built-in way with Next?
View full answer

1 Reply

Avatar
Would I just use something like nodemon/chokidar/watch and run it concurrently with next dev, or is there some built-in way with Next?
Answer