Home Explore Blog CI



zed

.cloudflare/README.md
a94440a3840748e8b3aa4fdc44540ab732e79f024893dce90000000300000295
We have two cloudflare workers that let us serve some assets of this repo
from Cloudflare.

- `open-source-website-assets` is used for `install.sh`
- `docs-proxy` is used for `https://zed.dev/docs`

On push to `main`, both of these (and the files they depend on) are uploaded to Cloudflare.

### Deployment

These functions are deployed on push to main by the deploy_cloudflare.yml workflow. Worker Rules in Cloudflare intercept requests to zed.dev and proxy them to the appropriate workers.

### Testing

You can use [wrangler](https://developers.cloudflare.com/workers/cli-wrangler/install-update) to test these workers locally, or to deploy custom versions.

Chunks
17f663fa (1st chunk of `.cloudflare/README.md`)
Title: Cloudflare Workers for Asset Delivery and Documentation Proxy
Summary
The document describes two Cloudflare workers used to serve assets and documentation for the zed.dev website. `open-source-website-assets` handles `install.sh`, and `docs-proxy` serves the documentation at `https://zed.dev/docs`. These workers are automatically deployed on pushes to the `main` branch using the `deploy_cloudflare.yml` workflow. Wrangler can be used for local testing and custom deployments.