my website at ewancroft.uk
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(vercel): update cron schedule for Hobby plan and fix routing config

- Change cron from every 6 hours to daily at 3am UTC (Hobby plan limit)
- Migrate deprecated 'routes' to 'rewrites' and 'redirects'
- Fix routing syntax from 'src'/'dest' to 'source'/'destination'
- Remove favicon routing (handled by SvelteKit static files)

Fixes Vercel deployment error: 'Hobby accounts are limited to daily cron jobs'

+15 -13
+15 -13
vercel.json
··· 1 1 { 2 - "routes": [ 2 + "rewrites": [ 3 3 { 4 - "src": "/favicon.ico", 5 - "dest": "/static/favicon/favicon-32x32.png" 4 + "source": "/rss", 5 + "destination": "/blog/rss" 6 6 }, 7 7 { 8 - "src": "/apple-touch-icon.png", 9 - "dest": "/static/favicon/apple-touch-icon.png" 8 + "source": "/rss.xml", 9 + "destination": "/blog/rss" 10 10 }, 11 11 { 12 - "src": "/apple-touch-icon-precomposed.png", 13 - "dest": "/static/favicon/apple-touch-icon.png" 12 + "source": "/feed", 13 + "destination": "/blog/rss" 14 14 }, 15 15 { 16 - "src": "/robots.txt", 17 - "dest": "/static/robots.txt" 18 - }, 16 + "source": "/feed.xml", 17 + "destination": "/blog/rss" 18 + } 19 + ], 20 + "redirects": [ 19 21 { 20 - "src": "/sitemap.xml", 22 + "source": "/sitemap.xml", 21 23 "dest": "/static/sitemap.xml" 22 24 } 23 25 ], ··· 29 31 "crons": [ 30 32 { 31 33 "path": "/api/cron/warmup", 32 - "schedule": "0 */6 * * *" 34 + "schedule": "0 3 * * *" 33 35 } 34 36 ] 35 - } 37 + }