AWS amplify deploy button plugin for sanity.io dashboard
Install sanity dashboard (if not already installed)
sanity install @sanity/dashboard
sanity install dashboard-widget-amplifydeploybutton
Get the full webHookUrl from amplify ex. "https://webhooks.amplify.eu-west-1.amazonaws.com/prod/webhooks?id=XXX&token=XXX&operation=startbuild".
export default {
widgets: [
{
name: "AmplifyDeployButton",
options: {
webhookUrls: [
"<WebhookUrl1>",
"<WebhookUrl2>",
],
title: "Deploy content changes",
buttonText: "Deploy",
},
},
]
}