[docs] Typo fix in Cloudflare README (#8429)

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
This commit is contained in:
Sarah Rainsberger 2023-09-06 10:26:27 -03:00 committed by GitHub
parent 59672ad4e7
commit bd8aa9a996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---
Update code sample in the README to use uppercase `GET`.

View file

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