On this page
Follow the schedule from build output to the function
- 1From the linked project, run the Vercel CLI's production build locally. Replace /api/nightly with your configured path. This prints the registered entry from the Build Output API config and exits 1 if it is missing.
Terminal vercel build --prod node -e "const config = require('./.vercel/output/config.json'); const job = config.crons?.find(job => job.path === process.argv[1]); if (!job) process.exit(1); console.log(job)" /api/nightly - 2If the entry is missing, verify the project root, the crons array in vercel.json and the schedule allowed by your plan. If the local output is correct but the job is missing in the dashboard, check which commit is Current in Production and whether Cron Jobs were disabled on the project.
- 3If the job is listed, test the route against a local or staging fixture that does no production work. Set CRON_TEST_URL to the full fixture path and CRON_SECRET to the fixture's configured secret. Save as probe-cron.mjs and run node probe-cron.mjs. It prints the status only and never follows redirects.
Code const { CRON_TEST_URL, CRON_SECRET } = process.env; if (!CRON_TEST_URL || !CRON_SECRET) { throw new Error('Set CRON_TEST_URL and CRON_SECRET for the test route.'); } const response = await fetch(CRON_TEST_URL, { method: 'GET', headers: { authorization: 'Bearer ' + CRON_SECRET }, redirect: 'manual', }); console.log('HTTP ' + response.status); process.exitCode = response.ok ? 0 : 1; - 4A 3xx calls for a direct path, including the correct trailing slash. A 401 calls for comparing the handler's authorization check with the Production deployment's CRON_SECRET. A 404 points to a route or path mismatch, and 405 points to the missing GET handler. A 5xx means the request reached an error that needs function logs.
- 5Use View Logs for the next scheduled run to verify the real production invocation. Check the UTC window, including the whole scheduled hour on Hobby, and look for redirects, caching or a firewall decision if there are no function logs. A manual 2xx confirms the route handles a request. The scheduled invocation and the job's recorded result are separate evidence.
Related guides
Official docs behind this checklist
Browse all launch guides · Read resources · How to make and check your next change
FAQ for builders before launch
Does Vercel retry a failed Cron Job?
Vercel does not retry a failed cron invocation. Make the job safe to run twice and have it catch up from the last successful checkpoint.
Where do I check CRON_SECRET after an update?
Check the Production variable assignment and redeploy. Vercel uses the value captured by the deployment serving production. Confirm the next scheduled invocation in the logs.