# Deploy to Cloudflare Pages

[← Back to Cloudflare](https://dotenvx.com/docs/cloudflare.md#production)

For a Cloudflare Pages project, upload the decrypted production secrets, then deploy your built site. Start with the encrypted .env.production file from [Production](https://dotenvx.com/docs/cloudflare.md#production). Replace my-site with your Pages project name and dist with your build output directory. Run these commands in Bash or Zsh.

```console
$ npx wrangler pages secret bulk <(npx dotenvx get -f .env.production --strict) --project-name my-site
$ npx wrangler pages deploy dist --project-name my-site
```
