Expose POST /api/admin/sync-catalog for authenticated admins (import rate limit, 300s timeout) and wire a Run catalog sync control on /admin/card-import. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
294 B
JSON
17 lines
294 B
JSON
{
|
|
"framework": "nextjs",
|
|
"crons": [
|
|
{
|
|
"path": "/api/cron/sync-catalog",
|
|
"schedule": "0 6 * * 1"
|
|
}
|
|
],
|
|
"functions": {
|
|
"pages/api/cron/sync-catalog.js": {
|
|
"maxDuration": 300
|
|
},
|
|
"pages/api/admin/sync-catalog.js": {
|
|
"maxDuration": 300
|
|
}
|
|
}
|
|
}
|