Why are api-route First Load JS going from 0b to 109kb after upgrade to NextJs 15? #73986
Answered
by
samcx
J4v4Scr1pt
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
samcx
Dec 17, 2024
Replies: 2 comments 23 replies
-
Could you help us debug this, please install, https://www.npmjs.com/package/@next/bundle-analyzer, and run it. It'll open three browser windows, one of them has what'll be sent to the client, could you post a screenshot of that? |
Beta Was this translation helpful? Give feedback.
23 replies
-
Wow this was really confusing to me as well! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To enable
use cache
in Route Handlers, we started generating client reference manifests and client chunks for Route Handlers in #70897. This led to the shared initial client JS size being also shown for Route Handlers. It's confusing for users because from the output it's not immediately clear that this is client JS, which is irrelevant for Route Handlers.We should just print a dash there! The 0 B in v14 was similarly strange, I think.