Posts

Showing posts with the label Custom Domain

Moving a React app on Azure Static Web Apps to a Cloudflare custom

How we moved a React single-page app hosted on Azure Static Web Apps onto a custom domain managed in Cloudflare, without exposing an unfinished site, and what else had to change behind the scenes: CORS, transactional email, and Stripe redirects. Background Our product is a SaaS tool for domain-name research. The frontend is a React app deployed to Azure Static Web Apps through GitHub Actions. The backend is an ASP.NET Core API on Azure App Service . Until recently the frontend lived on the default *.azurestaticapps.net hostname that Azure hands out. The business made two decisions at once: the public domain would be a .ai domain already sitting in a Cloudflare account, and the brand would change to match it. So the job was part DNS, part configuration, and part find-and-replace. What "moving the site" actually touches Pointing DNS at the new host is the easy part. The frontend origin is baked into several other places, and if any of them is missed the app br...