diff options
author | 2023-09-01 17:11:55 +0200 | |
---|---|---|
committer | 2023-09-01 17:11:55 +0200 | |
commit | b74dacdb6a49755f979f15091355f06bd6bd64bf (patch) | |
tree | b33042457097915d88a37bf4be066289e3d86efe | |
parent | 1b9de317377f2fdbf872d178b2412e062a5f97fe (diff) | |
download | astro-b74dacdb6a49755f979f15091355f06bd6bd64bf.tar.gz astro-b74dacdb6a49755f979f15091355f06bd6bd64bf.tar.zst astro-b74dacdb6a49755f979f15091355f06bd6bd64bf.zip |
Uppercase endpoint examples in adapter READMEs (#8346)
-rw-r--r-- | .changeset/quiet-sheep-refuse.md | 6 | ||||
-rw-r--r-- | packages/integrations/cloudflare/README.md | 2 | ||||
-rw-r--r-- | packages/integrations/netlify/README.md | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/.changeset/quiet-sheep-refuse.md b/.changeset/quiet-sheep-refuse.md new file mode 100644 index 000000000..3660e03fc --- /dev/null +++ b/.changeset/quiet-sheep-refuse.md @@ -0,0 +1,6 @@ +--- +'@astrojs/cloudflare': patch +'@astrojs/netlify': patch +--- + +Update README diff --git a/packages/integrations/cloudflare/README.md b/packages/integrations/cloudflare/README.md index 25cd7c376..99b2d7528 100644 --- a/packages/integrations/cloudflare/README.md +++ b/packages/integrations/cloudflare/README.md @@ -99,7 +99,7 @@ From an endpoint: ```js // src/pages/api/someFile.js -export function get(context) { +export function GET(context) { const runtime = context.locals.runtime; return new Response('Some body'); diff --git a/packages/integrations/netlify/README.md b/packages/integrations/netlify/README.md index c29d2d126..a313486dc 100644 --- a/packages/integrations/netlify/README.md +++ b/packages/integrations/netlify/README.md @@ -243,7 +243,7 @@ We check for common mime types for audio, image, and video files. To include spe import fs from 'node:fs'; -export function get() { +export function GET() { const buffer = fs.readFileSync('../image.jpg'); // Return the buffer directly, @astrojs/netlify will base64 encode the body |