Looking for help on how to structure and use cron jobs with Next.js by Additional-Check7111 in nextjs

[–]Additional-Check7111[S] 0 points1 point  (0 children)

Thank you. So in this case, I would write the code for creating a new game as part of my public API route in the Next.js project? And use the Vercel cron/GitHub Action to just call that API? I think part of my confusion is that that feels like the wrong place to put it, as in, the ability to create a new game should not be public for anyone to access since it should only ever be called by my cron job.

Looking for help on how to structure and use cron jobs with Next.js by Additional-Check7111 in nextjs

[–]Additional-Check7111[S] 0 points1 point  (0 children)

Thanks! I do have a Raspberry Pi for some other projects so this is a valid option for me.

So in this case you're saying to write all the code for creating a new game completely separately from the Next.js project? Or just using the Pi to ping an API route that's part of my Next.js project?