pcbowers / sanity-plugin-tags

A multi-tag input for sanity studio.
https://sanity.io/plugins/tags
MIT License
21 stars 8 forks source link

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

Open adamatronix opened 1 year ago

adamatronix commented 1 year ago

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 commented 1 year ago

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.