首页 > 解决方案 > NextJS Export remove Source Map

问题描述

Combined with @nextJS/Sentry the build is now creating a lot of js.map files.

As we build a static site

next build
next export

These map files are getting included in the export and increase the bundle size from 16mb to 64mb in weight.

Has anyone else experienced this and knows a crafty way to achieve uploading the source maps to sentry and not including them in our static build?

标签: next.jssentry

解决方案


推荐阅读