ai-code-battle/web/notes/bf-1pc.md
jedarden f0ac0313a1 docs(bf-1pc): verify SPA R2→B2 migration - already complete
All acceptance criteria met:
- No /r2/ paths in source code
- Build succeeds
- No r2.aicodebattle.com references in dist

Work was completed in commit 76369b5 on 2026-06-16.
2026-06-16 23:26:31 -04:00

945 B

bf-1pc: Fix SPA TypeScript - Replace /r2/ with /b2/

Status: ✓ Already Complete

This task was completed in commit 76369b5 on 2026-06-16.

Changes Made

Commit 76369b5: "fix(spa): replace /r2/ data path prefix with /b2/"

  • File changed: web/src/api-types.ts
  • Change: const R2_COMMENTARY_BASE = '/r2';const R2_COMMENTARY_BASE = '/b2';
  • Lines: 1 insertion(+), 1 deletion(-)

Commit 724f516: "fix(spa): replace r2.aicodebattle.com with b2.aicodebattle.com"

  • Updated domain references (earlier commit)

Acceptance Criteria Verification (2026-06-16)

  1. grep -r "/r2/" web/src/ returns no hits
  2. npm run build succeeds (completed in 2.65s)
  3. grep -r "r2.aicodebattle" web/dist/ returns no hits

Current State

The constant in src/api-types.ts:

const R2_COMMENTARY_BASE = '/b2';

All data-fetch URLs now use /b2/ prefix and b2.aicodebattle.com subdomain.