sanity-plugin-tags
sanity-plugin-tags copied to clipboard
Unable to run studio in production on vercel, but works locally
Using the latest version of this plugin with this template https://github.com/mariuslundgard/sanity-template-nextjs.
I can use the embedded studio locally, but when I deploy to Vercel I get a vague application error.
Was confused as to why it only occurred on production, and after trial and error I figured out that removing tags from sanity config allowed sanity to load.
I wonder if anyone else has encountered this issue. I will try and use a fresh sanity project to see if it still occurs.
Just an update, found this issue on another plugin https://github.com/christopherafbjur/sanity-plugin-icon-picker/issues/33
The solution worked, we need to set swcMinify to false.