Cloudflare Workers

    Support for Workers build output

    Cloudflare Workers - 图2 Zero-millisecond cold start with edge-side rendering

    Minimal configuration required

    Login to your Cloudflare Workers account and obtain your from the sidebar.

    wrangler.toml

    Testing locally

    You can use , a local Cloudflare Workers development server, to test your app locally:

    1. NITRO_PRESET=cloudflare yarn build

    Install wrangler and login to your Cloudflare account:

    Generate website with cloudflare preset:

      Publish:

      Deploy within CI/CD using GitHub Actions

      Create a token according to and set CF_API_TOKEN in your repository config on GitHub.

      Create .github/workflows/cloudflare.yml:

      .github/workflows/cloudflare.yml

      A live demo is available on https://nitro-deployment.pi0.workers.dev.