mservais
mservais7mo ago

calling tRPC procedures from a function (e.g. a cron on vercel)?

Hey everyone, I am using nextjs App router together with tRPC and it's working super well so far! I would like to call tRPC procedures periodically (like once per month with a cron job) and also from a function (e.g. user submits a form, once it's sucessfully submitted, I wait 5 seconds and then call a mutate procedure that updates stuff in my DB). I am actually super confused on how to do that - so far I have mostly called the useQuery and useMutation hooks from React client components.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?