mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 16:38:00 +01:00
The original hourly cron (`0 * * * *`) from commit II works on Vercel Pro but is rejected by Hobby plan: "Hobby accounts are limited to daily cron jobs". This was blocking every production deploy since II — every push errored before building, which is why KK / LL / MM weren't going live. Diagnosed via `vercel --prod` showing the actual error message. Switched to daily at 07:00 Zurich. Sufficient for the realistic use cases (weekly chores like "clean kitchen Monday 8am", monthly checks). The per-task `schedule_cron` expression still drives whether it's actually that task's day — daily polling just bounds the granularity. Limitation: sub-daily schedule_cron expressions (e.g. "every 4 hours") won't fire as expected. Documented in the route's header comment. Upgrade to Vercel Pro if sub-daily recurrence becomes a real need. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"version": 2,
|
|
"buildCommand": "next build",
|
|
"outputDirectory": ".next",
|
|
"framework": "nextjs",
|
|
"git": {
|
|
"deploymentEnabled": {
|
|
"main": true,
|
|
"preview": true
|
|
}
|
|
},
|
|
"headers": [
|
|
{
|
|
"source": "/_next/static/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=31536000, immutable"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/images/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=86400, stale-while-revalidate=31536000"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=0, must-revalidate"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"alias": ["revampit.vercel.app"],
|
|
"crons": [
|
|
{
|
|
"path": "/api/cron/close-decisions",
|
|
"schedule": "0 0 * * *"
|
|
},
|
|
{
|
|
"path": "/api/cron/close-it-hilfe-requests",
|
|
"schedule": "0 1 * * *"
|
|
},
|
|
{
|
|
"path": "/api/cron/prune-audit-log",
|
|
"schedule": "0 2 * * *"
|
|
},
|
|
{
|
|
"path": "/api/cron/wake-recurring-tasks",
|
|
"schedule": "0 7 * * *"
|
|
}
|
|
]
|
|
} |