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);