astro/.changeset/rude-trainers-repeat.md
Ben Holmes 1061d6477a
Feat: improve production build logging (#2857)
* feat: log setup, vite, and route gen steps

* refactor: add back "build" + timestamp for consistency

* feat: improve ms increase logs to match old debug output

* feat: add log for server assets

* chore: remove redundant debug logs

* feat: add logs for ssr steps

* fix: hide  per-page log for ssr builds

* fix: hide "index.html" from debug log in SSR

* feat: add log for "collecting page data" step

* feat: add timeout logs for longer data imports

* chore: add changeset

* remove (includes setup + teardown)

* refactor: add newline to separate ssr from client build

* fix: move "gen static routes" heading to pages

* fix: only show client build ms when triggered

* fix: remove dup render loop

* chore: remove unused static-build imports
2022-03-24 15:23:37 -04:00

561 B

astro
patch

Improve granularity of production build logs. This now lists:

  • the "data collection" build step, with timeout warnings for larger imports. This is useful for understanding large import.meta.glob calls.
  • the Vite client bundling step. This logs all Vite production build info to clarify what assets are built alongside your HTML.
  • the route generation step, complete with all output HTML files for a given input file. This is especially useful when debugging getStaticPaths.
  • fixes "0 pages in Infinityms" log when building to SSR