Integrations · Hosting

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

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.

  1. 01

    Document the current records

    List every DNS record before changing anything, and keep the MX and SPF records for email intact.

  2. 02

    Add Webflow’s records as DNS only

    Add the records Webflow asks for with Cloudflare’s proxy switched off.

  3. 03

    Wait for Webflow’s SSL

    Let Webflow issue the certificate and check that the site loads on your domain.

  4. 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.

Errors

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.

SSL

Records left over from a previous host conflict with Webflow’s. Remove them before adding the new ones.

DNS

Webflow sites on older infrastructure may need updated DNS records before Orange-to-Orange works.

Migration
Astro

Astro on Cloudflare Pages and Workers

  1. 01

    Connect the repository

    Create a Pages project from your Git repository.

  2. 02

    Set the build

    Build command npm run build, output folder dist. A static Astro site needs no adapter.

  3. 03

    Add @astrojs/cloudflare for server routes

    On-demand routes run on Pages Functions, with access to KV, R2 and D1.

  4. 04

    Review on preview URLs

    Every branch gets its own preview URL before it reaches production.

Per platform

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.

Use cases

What teams use it for

01

DNS and redirects in one place

Domains, subdomains and redirects from old marketing domains, managed with change history.

02

Hosting static Astro sites

A fast, global host for static sites, with preview links for every branch.

03

Bot and abuse protection

Rate limiting and bot rules in front of forms and APIs that attract spam.

Cautions

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.

Security

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.

Performance

Cloudflare logs request data, including IP addresses. Check that your privacy policy and data processing agreement cover it.

Data
Handover

What we set up and hand over

What we set up
DNS records documented, SSL, redirects, Pages or Workers deploys
Email
MX and SPF records kept intact
Typical time
1–3 days
Complexity
Medium
FAQ

Questions about Webflow and Cloudflare

Can we keep Cloudflare’s proxy on in front of Webflow?
Yes, with Orange-to-Orange, on sites hosted on Webflow’s Cloudflare-based setup. Older sites may need updated DNS records first.
Why does my Webflow site show a 525 error behind Cloudflare?
The proxy is on before the SSL handshake works. Switch Webflow’s records to DNS only until the certificate is live.
Can Framer sit behind Cloudflare’s proxy?
Framer’s custom domain guide does not cover Cloudflare’s proxy, so we keep its records DNS only unless Framer support confirms otherwise.
How do I deploy Astro to Cloudflare?
Static Astro sites deploy to Cloudflare Pages with no adapter: build command npm run build, output folder dist. Server routes use the @astrojs/cloudflare adapter.
Cloudflare Pages or Vercel for Astro?
Both work well for static Astro sites. Cloudflare is a good fit if your DNS already lives there or you need Workers features; Vercel is simpler for teams already using it.
Thomas OldenburgerFounder, design and build lead

Still deciding? A 30-minute call answers most of it.

Got a brief, or half of one?

Book a free 30-minute call. You leave with a straight answer on scope, price and timing, even when we are not the right fit.