shipfeedAI news, curated daily

02:44:35 CET
21 MAY02:44:35shipfeed
pull to refreshlast sync
Just in — 30 new
§ feed · storyline

How we run Vercel's CDN in front of Discourse

Vercel publishes a guide on using its CDN as a proxy in front of Discourse, enabling firewall protection, DDoS mitigation, and microfrontend integration without migrating the hosted app.

Mar 10 · · primary fetch1 sourceupdated Mar 10 ·

Vercel's CDN can front any application, not just those deployed natively on the platform, and it's simple to set up. This allows you to add firewall protection, DDoS mitigation, and observability to platforms like Discourse or WordPress without migrating them completely. The is an example of this architecture. It is a Discourse application hosted elsewhere, but we proxy it ourselves via Vercel's CDN, which both protects the app and gives us access to useful features in Vercel's website stack: Vercel Community Some parts of the community platform, like, run directly on Vercel with Next.js. We use to mount a Next.js app on the same domain as the Discourse app, for three reasons: Vercel Community live sessionsVercel Microfrontends When the new pages are ready to launch, we add the path to our microfrontends configuration and users are rerouted seamlessly on the next deploy.

To set up Vercel as a CDN proxy like this, you need two domains: Ensure that all links on the site and its canonical URLs use the outer domain. Once those are in place, create a new project on Vercel that deploys to the outer host. You can then use to rewrite traffic to the inner domain. (formerly vercel.json)…

read full article on vercel.com
§ sources1 publication · timeline below
  1. vercel.comHow we run Vercel's CDN in front of Discourseprimary