Files
splatoon3.ink/workers/screenshots/wrangler.jsonc
Matt Isenhower 6df93806c2 Prepare the backend for Cloudflare Workers
Groundwork for running the existing updaters and social posters in a Worker:

- Derive IDs with @noble/hashes shake256; the Workers runtime's node:crypto
  lacks shake256. A test pins an ID produced by node:crypto.
- Split updaters into fast (schedules, gear, co-op, festivals, stages; run
  concurrently) and slow (X-Rank, Splatfest rankings; run one at a time).
  The cron posts after the fast updaters, before the slow ones.
- Fetch X-Rank seasons and detail types sequentially, cutting peak heap per
  division from ~85 MB to ~38 MB.
- Move Splatfest rankings into FestivalRankingsUpdater, driven by the
  published festivals data, so results never wait on ranking pagination.
- Coalesce concurrent downloads of the same SplatNet image.
- Bring over the Browser-binding screenshot work from develop (f7293b6):
  Cloudflare captures use the BROWSER binding with retries, Browserless is
  removed, and workers/screenshots offers capture-only local testing. The
  local driver keeps puppeteer-core with an installed Chrome, always serves
  dist/, and fails on page-reported screenshot errors.
- Remove the Docker image, compose files, and GHCR deploy workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 15:40:51 -08:00

21 lines
448 B
JSON

{
"$schema": "../../node_modules/wrangler/config-schema.json",
"name": "splatoon3-ink-screenshot-preview",
"main": "index.mjs",
"compatibility_date": "2026-09-04",
"compatibility_flags": ["nodejs_compat"],
"workers_dev": false,
"preview_urls": false,
"browser": {
"binding": "BROWSER",
"remote": true
},
"vars": {
"SITE_URL": "https://dev.splatoon3.ink"
},
"dev": {
"ip": "127.0.0.1",
"port": 8789
}
}