sanity-plugin-tags icon indicating copy to clipboard operation
sanity-plugin-tags copied to clipboard

Unable to run studio in production on vercel, but works locally

Open adamatronix opened this issue 1 year ago • 1 comments

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. Screenshot 2023-04-23 at 11 57 13 PM

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.

adamatronix avatar Apr 23 '23 15:04 adamatronix

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.

adamatronix avatar Apr 24 '23 03:04 adamatronix