ndimatteo / sanity-plugin-vercel-deploy

Custom plugin to trigger webhooks from your Sanity Studio.
MIT License
99 stars 20 forks source link

Delete deployment button not showing #56

Closed yornaath closed 9 months ago

yornaath commented 9 months ago

When running the sanity cms in dev mode locally I am not seeing the delete deployment button.

It was my impression it should show in dev even though the deployment is set to disable delete in production.

Since I have rotated the token, and you cannot update the token these deployments are now stuck for me, cannot be deleted or updated to the new token.

ndimatteo commented 9 months ago

@yornaath I misspoke about the delete action being present in development.

In your use-case, I'd suggest editing the deployment, turn off the "disable delete action" option, and then remove the deployment.

FYI– If you're rotating tokens you'll always have to create a new deployment as the token field is kept secret/hidden after a deployment is created for security purposes.