Docs / Deployment / Cloudflare Pages

Cloudflare Pages

Deploy your Dustavez site to Cloudflare Pages for fast, globally distributed hosting.

Cloudflare Pages provides fast static hosting with a global CDN, automatic HTTPS, and unlimited bandwidth on the free tier.

Setup

1

Push to GitHub or GitLab

Ensure your Dustavez project is in a Git repository.

2

Create a Pages project

Go to the Cloudflare dashboard, navigate to Workers & Pages > Create application > Pages, and connect your Git repository.

3

Configure build settings

Set the following:

  • Framework preset: Astro
  • Build command: npm run build
  • Build output directory: dist
4

Deploy

Click Save and Deploy. Cloudflare builds your site and makes it available on a .pages.dev subdomain.

Custom domain

  1. Go to your Pages project settings
  2. Click Custom domains > Set up a custom domain
  3. If your domain is already on Cloudflare, DNS records are configured automatically

Environment variables

Add environment variables in Settings > Environment variables. You can set different values for production and preview environments.

Wrangler CLI

You can also deploy directly from the command line using Wrangler: npx wrangler pages deploy dist

Last updated: April 4, 2026
Edit this page on GitHub