1.0.0 • Published 3 years ago

sanity-plugin-dashboard-widget-amplifydeploybutton v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

sanity-plugin-dashboard-widget-amplifydeploybutton

AWS amplify deploy button plugin for sanity.io dashboard

Installing

Install sanity dashboard (if not already installed)

sanity install @sanity/dashboard

Install the plugin

sanity install dashboard-widget-amplifydeploybutton

Update your dashboardConfig.js.

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",
    },
  },
  ]
}