Promote development → main (bom1 region) - #99
Conversation
Production was running in iad1 (US East) while users are in India,
making every protected page render a trans-continental round-trip:
bom1 (edge) → iad1 (function) → Supabase → iad1 → bom1
≈ 180ms × 2 + Supabase 250ms = ~600-1000ms per click
Pinning to bom1 collocates the serverless function with the user and
the Supabase project (also in Mumbai region), cutting the round-trip
from ~400ms to ~50ms and eliminating the cross-region Supabase hop.
Changes:
- Add dashboard/vercel.json (the one Vercel actually reads — Root
Directory = dashboard/). Mirrors infra/vercel.json's security
headers + /app redirect, but overrides the region.
- Also update infra/vercel.json's regions so the two stay consistent
if anyone copies infra/vercel.json forward.
Expected impact (re-measure after deploy):
Before: /dashboard 650ms, /api/health 1050ms
After: /dashboard ~250ms, /api/health ~400ms
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Auto-promote by /paycraft-deploy