Framework-Defined Infrastructure
Super serves thousands of domains from a single codebase with Next.js and Vercel | Customers | Vercel

Super serves thousands of domains from a single codebase with Next.js and Vercel | Customers | Vercel

2/1/2023

What this post added

This post details how Super.so leverages Next.js and Vercel to serve over 15,000 custom domains from a single codebase. Key technical contributions include the programmatic management of custom domains using Vercel's Domains API, enabling users to add/remove domains and detect/update configurations in real-time. The post highlights the use of Incremental Static Regeneration (ISR) for performance and reduced database load, and Edge Middleware for custom routing and moving server-side logic to the edge. It also emphasizes Vercel's GitHub integration for automated deployments and preview URLs, and the ability to connect multiple domains to a single project.

Read the original post ↗