feat: automated nightly scraper + housekeeping
All checks were successful
Build and Deploy / Build & Push (push) Successful in 3m11s

Scraper automation (docker-compose):
- Add scraper service to docker-compose.yml using the same image and
  shared park_data volume; overrides CMD to run scrape-schedule.sh
- scripts/scrape-schedule.sh: runs an initial scrape on container start,
  then sleeps until 3:00 AM (respects TZ env var) and repeats nightly;
  logs timestamps and next-run countdown; non-fatal on scrape errors

Staleness window: 7 days → 72 hours in lib/db.ts so data refreshes
more frequently with the automated schedule in place

Remove favicon: delete app/icon.tsx and public/logo.svg

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-04 12:47:14 -04:00
parent 20f1058e9e
commit da083c125c
5 changed files with 56 additions and 79 deletions

View File

@@ -167,7 +167,7 @@ export function getMonthCalendar(
return result;
}
const STALE_AFTER_MS = 7 * 24 * 60 * 60 * 1000; // 1 week
const STALE_AFTER_MS = 72 * 60 * 60 * 1000; // 72 hours
/**
* Returns true when the scraper should skip this park+month.