From bd8aa9a996c8a9f9283995360fd495c291d1f766 Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Wed, 6 Sep 2023 10:26:27 -0300 Subject: [PATCH] [docs] Typo fix in Cloudflare README (#8429) Co-authored-by: Chris Swithinbank --- .changeset/lovely-shoes-scream.md | 5 +++++ packages/integrations/cloudflare/README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/lovely-shoes-scream.md diff --git a/.changeset/lovely-shoes-scream.md b/.changeset/lovely-shoes-scream.md new file mode 100644 index 000000000000..d510fc1fd26c --- /dev/null +++ b/.changeset/lovely-shoes-scream.md @@ -0,0 +1,5 @@ +--- +'@astrojs/cloudflare': patch +--- + +Update code sample in the README to use uppercase `GET`. diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index 99b2d75282c5..f49824cd9364 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -149,7 +149,7 @@ See Cloudflare's documentation for [working with environment variables](https:// ```js // pages/[id].json.js -export function get({ params }) { +export function GET({ params }) { // Access environment variables per request inside a function const serverUrl = import.meta.env.SERVER_URL; const result = await fetch(serverUrl + "/user/" + params.id);