You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding routes to my project increased bundle size from 3KB to 28MB.
By route, I mean a structure in the App router such as "/farm/[farmId]".
The build size is acceptable (about 2mb). Next-on-pages then tacks on massive *.func.js files.
Here are some build logs, showing an increase from 3KB to 9MB (after adding the first few routes). No major changes to the site were made besides routes.
next-on-pages environment related information
it gets ran on pages, not locally.
Description
Adding routes to my project increased bundle size from 3KB to 28MB.
By route, I mean a structure in the App router such as "/farm/[farmId]".
The build size is acceptable (about 2mb). Next-on-pages then tacks on massive *.func.js files.
Here are some build logs, showing an increase from 3KB to 9MB (after adding the first few routes). No major changes to the site were made besides routes.
buildWithoutRoutes.log
buildWithRoutes.log
Reproduction
No response
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
69a0f73b-0890-426c-bb16-9fd13478059e
Additional Information
May be related: #330
getsentry/sentry-javascript#13723
Not sure if this is me misusing next/pages. My apologies if it is.
Would you like to help?
The text was updated successfully, but these errors were encountered: