[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor

fix: remove custom domains from Vercel on downgrade to free master

The customerSubscriptionDeleted webhook cleared page.customDomain in the DB but left the domain attached to the Vercel project, so it kept routing to the status page after downgrade. Collect the custom domains of all workspace pages (including the extra pages the downgrade deletes) inside the transaction and release them on Vercel after commit, best-effort so a Vercel error doesn't fail the webhook. Moves the Vercel domain helpers from the page router into src/lib/vercel.ts so both routers share them. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013yVQKb8JAxQP9gpoBibsUb


+101 -80
3 changed files