[docs] Typo fix in Cloudflare README (#8429)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
This commit is contained in:
parent
59672ad4e7
commit
bd8aa9a996
2 changed files with 6 additions and 1 deletions
5
.changeset/lovely-shoes-scream.md
Normal file
5
.changeset/lovely-shoes-scream.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/cloudflare': patch
|
||||
---
|
||||
|
||||
Update code sample in the README to use uppercase `GET`.
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue