---
title: "Deploy To Cloudflare Workers"
description: "How to deploy web sites and web apps built with LaunchFast starter kits to Cloudflare Workers?"
source: "https://www.launchfa.st/documentation/deployment/cloudflare"
---

> **Site index for agents**
> Fetch https://www.launchfa.st/llms.txt to discover every page on this site.
> Every page is also available as Markdown by appending `.md` to its URL.

import { Steps } from '@astrojs/starlight/components'

<Steps>

1. Deploy to [Cloudflare Workers](https://workers.cloudflare.com/) with the following:
    
    ```bash
    npm run build && npm run cloudflare:deploy
    ```
    
    If you do not have an existing Cloudflare project, this command will help you set up one.

2. Create a copy of `wrangler.toml.example` as `wrangler.toml` via the following command:

    ```bash
    cp wrangler.toml.example wrangler.toml
    ```

3. Next, set all the environment variables in `wrangler.toml` file from your local `.env` file.

4. Finally, deploy to Cloudflare Workers (again) with the following:
    
    ```bash
    npm run build && npm run cloudflare:deploy
    ```

4. Now that's set up, you can deploy in future iterations only by executing the command once.

</Steps>
