Webflow and Astro on Cloudflare, without SSL errors
Cloudflare often already sits in front of your site as the DNS provider. Webflow on Cloudflare works as DNS only or with the proxy on, and Astro and Next.js builds can be hosted on Cloudflare directly. strak.com itself is hosted on Cloudflare Pages.
Webflow and Cloudflare: DNS only or Orange-to-Orange
Keep Webflow’s records DNS only until Webflow has issued SSL; only then switch on Cloudflare’s proxy with Orange-to-Orange.
- 01
Document the current records
List every DNS record before changing anything, and keep the MX and SPF records for email intact.
- 02
Add Webflow’s records as DNS only
Add the records Webflow asks for with Cloudflare’s proxy switched off.
- 03
Wait for Webflow’s SSL
Let Webflow issue the certificate and check that the site loads on your domain.
- 04
Switch on the proxy with Orange-to-Orange
If your site runs on Webflow’s Cloudflare-based hosting, Orange-to-Orange lets you keep Cloudflare’s proxy on. Older sites may need updated records first.
Fixing a 525 or SSL error on Webflow
A 525 handshake error means the proxy is on before the SSL handshake works. Switch Webflow’s records to DNS only.
Records left over from a previous host conflict with Webflow’s. Remove them before adding the new ones.
Webflow sites on older infrastructure may need updated DNS records before Orange-to-Orange works.
Astro on Cloudflare Pages and Workers
- 01
Connect the repository
Create a Pages project from your Git repository.
- 02
Set the build
Build command npm run build, output folder dist. A static Astro site needs no adapter.
- 03
Add @astrojs/cloudflare for server routes
On-demand routes run on Pages Functions, with access to KV, R2 and D1.
- 04
Review on preview URLs
Every branch gets its own preview URL before it reaches production.
Framer and Next.js on Cloudflare, per platform
The method depends on where your site is built. Here is what we use for Cloudflare on each platform.
Framer
Framer hosts the site; Cloudflare manages the domain. We add the A and CNAME records Framer asks for and remove conflicting records. Framer’s custom domain guide does not cover Cloudflare’s proxy, so we keep the records set to DNS only unless Framer support confirms otherwise, and use Cloudflare for redirects on other domains you own.
Framer development DNS and proxyWebflow
Webflow now documents Cloudflare Orange-to-Orange, which lets you keep Cloudflare’s proxy on for sites hosted on Webflow’s Cloudflare-based infrastructure. Older sites may need updated DNS records first. If a 525 handshake error appears, the fix is switching Webflow’s records to DNS only. We pick the setup that matches your site.
Webflow development Official adapterAstro
Static Astro sites deploy to Cloudflare Pages with no adapter: build command npm run build, output folder dist. Server-rendered routes use the @astrojs/cloudflare adapter and run on Pages Functions, with access to KV, R2 and D1. Every branch gets its own preview URL.
Astro development AdapterNext.js
Next.js runs on Cloudflare Workers through an adapter: OpenNext’s @opennextjs/cloudflare, or Cloudflare’s newer vinext path, which its docs now recommend as the default. Not every Next.js feature behaves exactly as on Vercel, so we test caching, images and middleware before moving production traffic.
Next.js developmentWhat teams use it for
DNS and redirects in one place
Domains, subdomains and redirects from old marketing domains, managed with change history.
Hosting static Astro sites
A fast, global host for static sites, with preview links for every branch.
Bot and abuse protection
Rate limiting and bot rules in front of forms and APIs that attract spam.
What to watch on Cloudflare
DNS changes can take a site offline or break email. We document every record before changing anything and keep MX and SPF records intact.
Proxying a site that is already on a CDN can add a hop or cause SSL errors. We follow each platform’s current proxy guidance.
Cloudflare logs request data, including IP addresses. Check that your privacy policy and data processing agreement cover it.
What we set up and hand over
- What we set up
- DNS records documented, SSL, redirects, Pages or Workers deploys
- MX and SPF records kept intact
- Typical time
- 1–3 days
- Complexity
- Medium
Questions about Webflow and Cloudflare
Can we keep Cloudflare’s proxy on in front of Webflow?
Why does my Webflow site show a 525 error behind Cloudflare?
Can Framer sit behind Cloudflare’s proxy?
How do I deploy Astro to Cloudflare?
Cloudflare Pages or Vercel for Astro?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Related integrations and services
Vercel
Hosting from the makers of Next.js, with preview deployments for every branch and pull request.
OpenNetlify
Hosting for code-built sites, with a deploy preview for every pull request.
OpenGitHub
Where the code for Astro and Next.js sites lives, is reviewed and gets deployed from.
OpenAstro development
Astro sites hosted at the edge, with previews.
OpenStatic site generator
Glossary definition.
Open