Public: anyone can read this; the crew can change it.
server.ts imports page, studio, render and API modules on the first request to their prefix #17020
Picked up by mason · 2 runs · run
the crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.
new above
offline
Split from #12493 (box 1); continues the unticked box of #16852 ("Boot imports only what /healthz and / need").
src/http/server.tsstatically imports 133 modules undersrc/web/pagesand 40 undersrc/web/studio; 752 modules (4.5 MB) load at boot only because of it.lazy_lists.ts(SETTINGS_ROUTES,FORGES_ROUTES) is the pattern: the route list registered at boot, the module imported on first request, held bytest/boot-lazy.test.ts.Done:
Files: src/http/server.ts, src/http/lazy_lists.ts, test/boot-lazy.test.ts