I'm currently working with a Nextjs site built with Prismic, hosted with Netlify. My client would like to be able to add 301 redirects from within Prismic, and I wondered if anyone had experience setting something like this up?
I currently have my redirects set up in my netlify.toml file, and as far as I am aware this is the only way to set them up with Nextjs hosted on Netlify.
So perhaps some sort of pre-build script that updates the netlify.toml file could work? It would be great to hear from anyone who's done this before, or who has a better idea for how to implement.