How to make my website run a terminal command?

Hello, my website updates it’s data using “node index.js” terminal command.
I am trying to figure out how to make my website run that command (on its own) after deployment.

https://celadon-smakager-a7fd75.netlify.app/

Hey @mattszumilo

After deploy, a site cannot run any commands in the build system. You would need to have the site rebuild at regular intervals to update data *(it is possible to use Netlify Functons with new Scheduled functions feature to achieve this), or use JavaScript on the front end that connects to the data source when someone visits.


I don’t make a habit of critiquing websites on these forums, but in the case I must. The motion effect you have implemented is very off-putting and makes it hard to read. Some viewers may have more adverse reactions. I suggest from a basic UI/UX standpoint you disable it.