title: How do I run cron/scheduled task in Nextjs 9?
body: <p>I'm building an app with Nextjs and I'm using pages/api directory for my api endpoints. The server entry/root is hidden for me. How do I immediately run the scheduled task with node-cron when my app is deployed then?</p>