FormidableLabs / nextjs-sanity-fe

NextJS Demo site with Sanity CMS
https://nextjs-sanity.formidable.dev/
29 stars 6 forks source link

add workflow to purge after production deployments #93

Closed Burnett2k closed 2 years ago

Burnett2k commented 2 years ago

This was the least intrusive method I found to make purging after deployments work.

It relies on the Vercel GH integration to create a "deployment" event after a deployment.

The workflow I created is triggered when a deployment event occurs, and if it's a 'production' environment event that means we should purge.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextjs-sanity-fe ✅ Ready (Inspect) Visit Preview Sep 15, 2022 at 8:47PM (UTC)