// Change ONE line in your existing script.js — everything else works unchanged:
const MARKETPLACE_API = '/api/items';
// Or use the static URLs directly for max performance (edge-cached):
const page1 = await fetch('/api/marketplace/page-1.json');
const item = await fetch('/api/marketplace/item/UUID-HERE.json');
Crawl via curl
# One-shot incremental crawl (checks for new items, refreshes metadata):
curl '/marketplace/crawl?key=YOUR_CRAWL_KEY'# Force a full re-crawl of all ~40k items (takes ~5-10 min, self-chains):
curl '/marketplace/crawl?key=YOUR_CRAWL_KEY&mode=full'# Just check status (no crawl):
curl '/marketplace/crawl?key=YOUR_CRAWL_KEY&status=1'
Enter Crawl Key
This is the CRAWL_KEY secret you set with `wrangler pages secret put`.