Vercel Cron job to visit external URL
Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
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
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