Skip to content

🎥 Make videos programmatically with React

fix next js types

Jonny Burger50724853c33e
diff --git a/packages/docs/docs/lambda/validatewebhooksignature.md b/packages/docs/docs/lambda/validatewebhooksignature.md
index 4e747a1e6a..74414e7415 100644
--- a/packages/docs/docs/lambda/validatewebhooksignature.md
+++ b/packages/docs/docs/lambda/validatewebhooksignature.md
@@ -6,7 +6,7 @@ slug: /lambda/validatewebhooksignature
_Available from v3.2.30_
-Validates the signature that was received by a [webhook](/docs/lambda/webhooks) endpoint is authentic and throws an error otherwise.
+Validates that the signature that was received by a [webhook](/docs/lambda/webhooks) endpoint is authentic. If the validation fails, an error is thrown.
## API
@@ -49,7 +49,7 @@ export default async function handler(
validateWebhookSignature({
secret: process.env.WEBHOOK_SECRET as string,
body: req.body,
- signatureHeader: req.header("X-Remotion-Signature") as string,
+ signatureHeader: req.headers["x-remotion-signature"] as string,
});
// If code reaches this path, the webhook is authentic.
diff --git a/packages/docs/docs/lambda/webhooks.md b/packages/docs/docs/lambda/webhooks.md
index 40cf4de4b2..94036e89a5 100644
--- a/packages/docs/docs/lambda/webhooks.md
+++ b/packages/docs/docs/lambda/webhooks.md
@@ -198,7 +198,7 @@ export default async function handler(
validateWebhookSignature({
secret: process.env.WEBHOOK_SECRET as string,
body: req.body,
- signatureHeader: req.header("X-Remotion-Signature") as string,
+ signatureHeader: req.headers["x-remotion-signature"] as string,
});
// If code reaches this path, the webhook is authentic.