Skip to content

Commit

Permalink
[docs] Typo fix in Cloudflare README (#8429)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
sarah11918 and delucis authored Sep 6, 2023
1 parent 59672ad commit bd8aa9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-shoes-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---

Update code sample in the README to use uppercase `GET`.
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd8aa9a

Please sign in to comment.