Originally launched as an email spam tracker, Cloudflare today offers extensive capabilities for users to register, manage domains as a registrar, and monitor, secure, and configure an entire IT infrastructure.
In this guide, we'll walk you through configuring Cloudflare as your default cloud provider for deploying and versioning applications with Zephyr Cloud. This setup leverages Cloudflare's global edge network, KV namespaces, Workers, and Pages to deliver your content at the edge.
After signing in, select your organization.
Before proceeding, you will need two details and one DNS configuration from Cloudflare:
1. Zone ID
2. API Token
Resource | Resource Type | Permission |
---|---|---|
Account | Worker KV Storage | Edit |
Account | Worker Scripts | Edit |
Account | Cloudflare Pages | Edit |
Zone | Worker Routes | Edit |
Zone Resources: When prompted, include a Specific zone under your domain.
Leave other configurations (e.g., Account resources, Client IP Address Filtering) as defaults.
Scroll to the bottom and select Continue to summary to review your configurations, then Create Token. The token will display on the next page.
3. Configure Your DNS Record
Type | Name | Content | Proxy Status | TTL |
---|---|---|---|---|
CNAME | * | ze.zephyrcloud.app | Proxied | Auto |
Details for each input after clicking Add Integration under Cloudflare:
Obtainable from Cloudflare. See instructions for creating your API token.
This operation is idempotent and will create a Cloudflare Pages project. This field will become the name of your Cloudflare Pages project.
When set as default, all Zephyr deployments will use this integration until a new one (default integration) is set.
Visit our recipes to test an application. Your next deployment should use your designated domain! (If not, contact us).
When using our managed cloud (Cloudflare) or custom Cloudflare integration, avoid including capital letters in names for package.json
, module federation configuration, or assets to prevent issues with Cloudflare queries.
When Cloudflare is added as your provider on Zephyr, these properties will be created on your Cloudflare account:
Three namespaces will be added:
ze-worker-for-static-upload
(for uploading and serving assets)ze.<domain.com>/*
on worker ze-worker-for-static-upload
*-ze.<domain.com>/*
on worker ze-worker-for-static-upload
Once your first Cloudflare deployment is complete, you can inspect assets.
In your Cloudflare dashboard, navigate to Workers & Pages and then KV to view assets under ze_files
.
ze_files
: stores your actual assets.ze_envs
: stores application environment and access rights.ze_snapshot
: stores application snapshots compared against the previous build.rm -rf ~/.zephyr
before deployment.To delete an existing Cloudflare integration, follow these steps:
Sign in to Cloudflare. In the navigation bar, select Workers & Pages.
Click on ze-worker-for-static-upload, select Manage, then click Delete.
Return to Workers & Pages and locate these two properties:
Select both projects, choose Manage, and click Delete.
In Workers & Pages, select KV.
Locate and delete the following namespaces:
On the dashboard, select the domain used for Deployment integration.
Choose Workers Routes in the navigation bar. Locate routes with ze
and *-ze
prefixes, then select Edit and Remove.
Log into Zephyr, select the organization with the integration to delete.
Go to Settings in the organization dashboard, choose Deployment Integration.
Select the integration name and click Remove.