cms.c2sgmbh/vercel.json
Martin Porwoll 13507d1361 feat(youtube): add metrics sync cron endpoints
Add two cron endpoints for automated YouTube metrics syncing:
- /api/cron/youtube-metrics-sync (every 6 hours): syncs video performance
  metrics (views, likes, comments) for all active channels
- /api/cron/youtube-channel-sync (daily at 04:00 UTC): syncs channel-level
  statistics (subscribers, total views, video count)

Both endpoints follow the established cron pattern with CRON_SECRET auth,
concurrent execution guards, HEAD monitoring, and structured logging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 13:27:05 +00:00

25 lines
516 B
JSON

{
"$schema": "https://openapi.vercel.sh/vercel.json",
"crons": [
{
"path": "/api/cron/community-sync",
"schedule": "*/15 * * * *"
},
{
"path": "/api/cron/token-refresh",
"schedule": "0 6,18 * * *"
},
{
"path": "/api/cron/send-reports",
"schedule": "0 * * * *"
},
{
"path": "/api/cron/youtube-metrics-sync",
"schedule": "0 */6 * * *"
},
{
"path": "/api/cron/youtube-channel-sync",
"schedule": "0 4 * * *"
}
]
}