Skip to content

Commit 7b88659

Browse files
committed
Added AWS Amplify webhook regenerate
1 parent 27be35c commit 7b88659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/api/regenerate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ async function regenerate(req, res) {
1010
).then((res) => res.json());
1111

1212
const webhookAWSAmplify = fetch(
13-
'https://webhooks.amplify.eu-west-1.amazonaws.com/prod/webhooks?id=39136c3c-a922-4014-8f44-7ffc09af7da6&token=hCtGi1YQdYDPvBJPlSFU9O6s8XrMMo7hjuLJDdz5wn4'
13+
'https://webhooks.amplify.eu-west-1.amazonaws.com/prod/webhooks?id=39136c3c-a922-4014-8f44-7ffc09af7da6&token=hCtGi1YQdYDPvBJPlSFU9O6s8XrMMo7hjuLJDdz5wn4',
14+
{ method: 'POST' }
1415
).then((res) => res.json());
1516

1617
const response = await Promise.all([webhookVercel, webhookAWSAmplify]);

0 commit comments

Comments
 (0)