next.js
60a9a3d2 - Remove staticInfo.rsc (#100172)

Commit
40 days ago
Remove staticInfo.rsc (#100172) It’s safe because .rsc wasn’t actually detecting client pages: - It searched for the compiler-generated marker `__next_internal_client_entry_do_not_use__`, not "use client". Static-info analysis reads raw source, so normal pages returned `'server'` or `undefined`. - Both values behaved identically: callers checked `rsc !== 'client'`, making the result effectively just “is this an App Router entry?” - Client-entry skipping was already redundant: it checked `isServerComponent || isInsideAppDir`. - The build’s remaining SSG branch was unreachable: it checked `isServerComponent` inside the Pages Router branch, where it was always false. The cleanup replaces those ineffective checks with the router classification they already represented. Actual client/server boundaries are still determined by the bundler; its RSC metadata is untouched. Build, type checks, unit tests, and focused Webpack dev/production tests passed.
Author
Parents
Loading