
How we run Vercel's CDN in front of Discourse
3/10/2026
This post demonstrates how Vercel's CDN and Edge Config can be used to proxy external applications, providing security and observability features. It introduces the concept of an 'inner host' (origin server) and 'outer host' (Vercel project domain) for proxying. A `vercel.ts` configuration is provided to rewrite traffic to the inner domain with a security header. Additionally, it details the use of microfrontends (`microfrontends.json`) to integrate separate Vercel projects (e.g., Next.js apps) onto specific routes of the proxied domain, allowing for incremental modernization and feature additions without a full migration. This extends the capability of dynamic routing and proxying beyond simple redirects to full application proxying and hybrid architectures.

















