summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/quiet-sheep-refuse.md6
-rw-r--r--packages/integrations/cloudflare/README.md2
-rw-r--r--packages/integrations/netlify/README.md2
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