Next.js Discord

Discord Forum

Vercel Cron job to visit external URL

Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
Open in Discord
Cuvier’s Dwarf CaimanOP
All of the documentation I've seen is using relative paths to visit a route within my Nextjs app

ex: vercel.json:
{
"crons": [
{
"path": "/api/update-rates",
"schedule": "0 9 1 * *"
}
]
}

Can i use a path: "https://othersite.com"? to visit a non NextJS that's not hosted on Vercel?

Reason: I would like to update rates on my NextJS site, and also update rates on a WordPress site hosted on Kinsta

details: both paths (on NextJS/Vercel and also WordPress/Kinsta) hit another external API to fetch rates and update the associated databases

0 Replies