mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 23:14:12 +00:00
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>
25 lines
516 B
JSON
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 * * *"
|
|
}
|
|
]
|
|
}
|