Prebaked
Docs

Cloudflare one-click install

Last reviewed

If your domain is on Cloudflare, open the domain's Setup page and use Connect Cloudflare. Prebaked verifies the domain, uploads a Worker and adds the routes in one step.

Steps

  1. Open the domain in the dashboard and go to Setup.
  2. Choose Connect Cloudflare, then one of:
    • Connect with Cloudflare: sign in to Cloudflare and approve access.
    • Use an API token: create a Cloudflare API token from the pre-filled link with Account > Workers Scripts > Edit, Zone > Workers Routes > Edit, Zone > Zone > Read and Zone > DNS > Read. Limit it to your account and your domain's zone, paste it and press Install.
  3. Check that it works.

What is added to your Cloudflare account

  • A Worker named prebaked-<your domain>.
  • A route for <your-domain>/*, plus www.<your-domain>/* when the domain includes www.
  • Your domain token, stored as a Worker secret.

Your Cloudflare credential is used once and never stored. Routes that already run another Worker are never changed. Connecting creates a new domain token, so the previous token stops working: update any other install of the same domain afterwards.

To test next to a prerender service you already use, turn on Start as a test (keep my current service) before you connect. See test mode.

Remove it

Open Connect Cloudflare on the Setup page, choose Remove… and paste a Cloudflare token with the same permissions. Prebaked removes its Worker and the route.

FAQ

Does Prebaked keep access to my Cloudflare account?

No. The credential is used once for the install and is not stored or logged.

The install stops at the route step. Why?

The route already runs another Worker. Prebaked never changes it. Remove or move that Worker, or use the add-on in the Cloudflare Worker guide to test next to it.

Nothing reaches the Worker. What is wrong?

The DNS record is probably not proxied through Cloudflare, or the route does not match your hostname. Turn on the proxy for the record.

Do I need to verify the domain separately?

No. Connect with Cloudflare verifies the domain in the same step.

Can I install the Worker by hand instead?

Yes. Follow the manual steps in the Cloudflare Worker guide.