Hello! I'm new to Prismic and am struggling to sunset a particular document. This document is linked from over a hundred other documents. What I'd like to be able to do is unpublish the document, set up a 301 redirect from the old URL to an active URL, and be done with it.
When I unpublish the document, my next build fails because the internal links are now broken. Is there a way to easily avoid this, perhaps by deleting the old document altogether?
The only way I know how to unpublish the old document without the build failing is to go one by one into each document and remove or update the internal link. This is incredibly time consuming.
What's the easiest way to get to my desired outcome of unpublishing the old/unwanted document?