Magnus
04/21/2021, 8:41 AMElio
04/21/2021, 11:54 AMneeds to do a third-party api query on each of those names every 3 hoursyou'll need to setup a cron job for that. Next.js allows you to define a custom server https://nextjs.org/docs/advanced-features/custom-server you could build a custom express server and then use node-cron to do this and populate your db with fresh data from that third party api https://www.digitalocean.com/community/tutorials/nodejs-cron-jobs-by-examples With this, when your users arrive to the app, they'll see fresh an up to date data
Ben Schwartz
04/21/2021, 3:21 PMElio
04/21/2021, 4:56 PM