SSG console prints _after_ page generation, preventing from debugging #9335
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
pkg: astro
Related to the core `astro` package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When generating static content, we have a nice print out in the console with url generated such as:
...but these lines happen after the pages being successfully generated. If an error occur there's no way to know which page crashed the build, since the log is only printed after the page built, not before.
What's the expected result?
In my wildest dreams, I'd love to see the console printings such as:
generatePath
call), url of the page only├─ /de/stickyad/index.html
generatePath
call), line amended with the build time of the path such as├─ /de/stickyad/index.html (+563ms)
Optionally, for long builds it would be nice to have absolute time and completion % (based on pre computed page number) with the atomic build path duration. It is useful to know the build duration to spot slow pages, but it's also nice to have an idea of where are we in the build.
Link to Minimal Reproducible Example
https://example.com
Participation
The text was updated successfully, but these errors were encountered: