prismicio / slice-simulator

Preview and develop Prismic slices fast with minimal configuration
6 stars 5 forks source link

fix: force all slice chunk to load in production only #12

Closed hypervillain closed 2 years ago

hypervillain commented 2 years ago

Because Nextjs forces display of an error popup when "something" breaks "somewhere", loading one broken slice (eg. because of lack of mocks for content relationships) displays the popup on each slice preview.

This makes sure you can still work on other slices while fixing the slice at fault / waiting for a fix.

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
./packages/com/dist/index.js 3.75 KB (0%)
./packages/com/dist/index.cjs 3.76 KB (0%)
./packages/core/dist/index.js 8.98 KB (+0.44% 🔺)
./packages/core/dist/index.cjs 17.66 KB (+0.23% 🔺)
./packages/react/dist/index.js 11.75 KB (+0.33% 🔺)
./packages/react/dist/index.cjs 20.58 KB (+0.19% 🔺)
./packages/vue/dist/index.js 9.42 KB (+0.4% 🔺)
./packages/vue/dist/index.cjs 18.15 KB (+0.23% 🔺)
./packages/vue3/dist/index.js 17.69 KB (+0.2% 🔺)
./packages/vue3/dist/index.cjs 170.42 KB (+0.03% 🔺)