Run function on t3 server start that calls cron

I have a service that I want to set up a cron job for. I know that I have the ability to use Vercel cron, but for now I'm just running everything locally and want to keep it that way for the time being. What I'm trying to achieve is being able to a call a function on server start. This function initiates a cron job (setup using the cron npm package), which carries out functionality that I want. I haven't been able to find a good location to add supplemental function calls on server start so I'm hoping someone can point me in the right direction.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server