Skip to content

Commit

Permalink
fix(cloudflare): sneaky docs (#8694)
Browse files Browse the repository at this point in the history
* fix(cloudflare): sneaky docs

* resolve docs review comments

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* resolve docs review comments

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
  • Loading branch information
alexanderniebuhr and sarah11918 authored Sep 28, 2023
1 parent eb530e9 commit 77d3785
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/integrations/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,15 @@ export default defineConfig({

### `runtime`

`runtime: "off" | "local" | "remote"`
`runtime: "off" | "local"`

default `"off"`

Determines whether and how the Cloudflare Runtime is added to `astro dev`.

The Cloudflare Runtime includes [Cloudflare bindings](https://developers.cloudflare.com/pages/platform/functions/bindings), [environment variables](https://developers.cloudflare.com/pages/platform/functions/bindings/#environment-variables), and the [cf object](https://developers.cloudflare.com/workers/runtime-apis/request/#incomingrequestcfproperties). Read more about [accessing the Cloudflare Runtime](#access-to-the-cloudflare-runtime).

- `local`: uses bindings mocking and locally static placeholdes
- `remote`: uses remote bindings and a live fetched cf object
- `local`: uses bindings mocking and locally static placeholders
- `off`: no access to the Cloudflare runtime using `astro dev`. You can alternatively use [Preview with Wrangler](#preview-with-wrangler)

```diff lang="js"
Expand Down

0 comments on commit 77d3785

Please sign in to comment.