Skip to content

🎥 Make videos programmatically with React

headers

Jonny Burger748ef49fd00c
diff --git a/packages/docs/docs/lambda/validatewebhooksignature.md b/packages/docs/docs/lambda/validatewebhooksignature.md
index 74414e7415..1d6d2317fb 100644
--- a/packages/docs/docs/lambda/validatewebhooksignature.md
+++ b/packages/docs/docs/lambda/validatewebhooksignature.md
@@ -31,7 +31,7 @@ In the following Next.JS webhook endpoint, an error gets thrown if the signature
```tsx twoslash title="pages/api/webhook.ts"
type NextApiRequest = {
body: string;
- header: (name: string) => string;
+ headers: Record<string, string>;
};
type NextApiResponse = {
status: (code: number) => { json: (body: object) => void };
diff --git a/packages/docs/docs/lambda/webhooks.md b/packages/docs/docs/lambda/webhooks.md
index 94036e89a5..321eb304db 100644
--- a/packages/docs/docs/lambda/webhooks.md
+++ b/packages/docs/docs/lambda/webhooks.md
@@ -180,7 +180,7 @@ Since this endpoint is going to be executed in an AWS Lambda function on it's ow
```tsx twoslash title="pages/api/webhook.ts"
type NextApiRequest = {
body: string;
- header: (name: string) => string;
+ headers: Record<string, string>;
};
type NextApiResponse = {
status: (code: number) => { json: (body: object) => void };