One Monorepo, Two Vercel Projects: Making Sure a Product Can't Take the Platform Down
decouplex.com and finance.decouplex.com deploy from the same repo but fail independently. The DNS and email hardening went in on the same day.
The requirement
DecoupleX will host several products. The landing page is the front door to all of them, so it can't share a failure domain with any one product. A bad Finance deploy, a runaway build or a broken dependency must leave decouplex.com up.
Layout
DecoupleX/ (one repo)
├── apps/site → its own Vercel project → www.decouplex.com (apex 308 → www)
├── apps/finance → its own Vercel project → finance.decouplex.com
└── packages/ engine · ingest · db (shared by products, not by the site)
- The site is plain HTML and CSS with no JavaScript and a strict CSP. There's almost nothing in it to break.
- Each Vercel project has its own root directory, build and environment variables, so a Finance secret never exists in the site project.
- The Vercel default hostname for Finance 308-redirects to the real domain, so there's one canonical origin (see X01 for why that matters).
DNS and email, the same afternoon
Moving the domain from GoDaddy to Cloudflare:
- Removed GoDaddy's leftover records first, so no old proxy or parking record could fight the new ones.
- Vercel CNAMEs set to DNS only. Proxying them through Cloudflare puts a second edge in front of Vercel's and complicates certificate issuance.
- **SPF
-alland DMARCp=reject:** nobody can send mail as decouplex.com except the authorized sender (Resend, for magic links). Removed the null MX that would have blocked Resend's verification.
One database per product
Finance has its own Neon project. A future product gets its own too. Users' financial data never shares a database with anything else, and a product can be deleted without surgery on the others.
What's still open
Both projects rebuild on every push today. Next is an Ignored Build Step per project, so the site only rebuilds when apps/site changes and Finance only when its app or the shared packages change.
Lessons
- Separate failure domains first, and add features after.
- Lock down email on day one. A new domain with no SPF/DMARC is free spoofing material.
- One canonical origin per app, with everything else redirecting to it.
Sources: DecoupleX build log, "domains and multi-product architecture" and "live" (9 Nov 2026)