molecule-ai-status/site
claude-ceo-assistant 0440dc809f fix(site): proxy gitea fetches via Vercel rewrites — work around Gitea raw-URL CORS
Gitea raw file responses do not send Access-Control-Allow-Origin, so
browser fetches from the Vercel-served status page were blocked
cross-origin. Add a Vercel rewrite that maps /data/(.*) ->
git.moleculesai.app/molecule-ai/molecule-ai-status/raw/branch/main/$1
so the browser only sees same-origin requests; Vercel handles the
upstream fetch server-side and returns the body to the browser.

Tradeoff
- Adds one network hop (browser -> Vercel edge -> Gitea -> Vercel ->
  browser). Vercel caches per the Cache-Control: public, max-age=60
  header on /data/, so steady-state is one upstream hit per minute
  per file. Acceptable.
- Decouples the page from Gitea CORS posture — if/when Gitea ships
  Access-Control-Allow-Origin headers (probably correct
  long-term), the page can be flipped back to direct fetch by
  removing the rewrite.

What did NOT change: probe binary, cron, file paths in history/,
.upptimerc.yml. The data flow is identical; only the URL the
browser uses changed.
2026-05-10 06:39:09 +00:00
..
app.js fix(site): proxy gitea fetches via Vercel rewrites — work around Gitea raw-URL CORS 2026-05-10 06:39:09 +00:00
index.html feat(site): static status page (closes #2 — page renderer) 2026-05-10 06:39:09 +00:00
vercel.json fix(site): proxy gitea fetches via Vercel rewrites — work around Gitea raw-URL CORS 2026-05-10 06:39:09 +00:00