From 707cac9fdfe3fdbd3714deb02f5452e5758c6575 Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Wed, 26 Oct 2022 15:23:47 -0300 Subject: [PATCH] [docs] Cloudflare integration README edits (#5205) Co-authored-by: Matthew Phillips --- packages/integrations/cloudflare/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index 66f4fdd20..12566b97a 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -68,9 +68,9 @@ $ pnpm install wrangler --save-dev It's then possible to update the preview script in your `package.json` to `"preview": "wrangler pages dev ./dist"`.This will allow you run your entire application locally with [Wrangler](https://github.com/cloudflare/wrangler2), which supports secrets, environment variables, KV namespaces, Durable Objects and [all other supported Cloudflare bindings](https://developers.cloudflare.com/pages/platform/functions/#adding-bindings). -## Access to the cloudflare runtime +## Access to the Cloudflare runtime -You have the posibility to access all the cloudflare bindings and environment variables from your astro pages and api routes through the adapter API +You can access all the Cloudflare bindings and environment variables from Astro components and API routes through the adapter API. ``` import { getRuntime } from "@astrojs/cloudflare/runtime"; @@ -78,7 +78,7 @@ import { getRuntime } from "@astrojs/cloudflare/runtime"; getRuntime(Astro.request); ``` -Depending your adapter mode (advanced = worker, directory = pages) the runtime object will look a little different due to the difference in the cloudflare API. +Depending on your adapter mode (advanced = worker, directory = pages), the runtime object will look a little different due to differences in the Cloudflare API. ## Streams