Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build output in static build mode #2358

Merged
merged 3 commits into from
Jan 11, 2022
Merged

Fix build output in static build mode #2358

merged 3 commits into from
Jan 11, 2022

Conversation

matthewp
Copy link
Contributor

Changes

  • Fixes the output when using --experimental-static-build. Previously was missing the number of pages, now its fixed:
10:02 AM [build] 1001 pages built in 10.58s (11ms/page)
10:02 AM [build] 🚀 Done

Testing

We don't have tests for cli output at the moment.

Docs

N/A, bug fix only.

@changeset-bot
Copy link

changeset-bot bot commented Jan 11, 2022

🦋 Changeset detected

Latest commit: 57b4809

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
astro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Jan 11, 2022
@netlify
Copy link

netlify bot commented Jan 11, 2022

✔️ Deploy Preview for astro-www ready!

🔨 Explore the source changes: 12baa35

🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-www/deploys/61dd9c765df7b10007e61920

😎 Browse the preview: https://deploy-preview-2358--astro-www.netlify.app

@netlify
Copy link

netlify bot commented Jan 11, 2022

✔️ Deploy Preview for astro-docs-2 ready!

🔨 Explore the source changes: 12baa35

🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-docs-2/deploys/61dd9c767d31f40008a571fe

😎 Browse the preview: https://deploy-preview-2358--astro-docs-2.netlify.app

@netlify
Copy link

netlify bot commented Jan 11, 2022

✔️ Deploy Preview for astro-www ready!

🔨 Explore the source changes: 57b4809

🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-www/deploys/61ddaa412508e4000885bdb8

😎 Browse the preview: https://deploy-preview-2358--astro-www.netlify.app

@netlify
Copy link

netlify bot commented Jan 11, 2022

✔️ Deploy Preview for astro-docs-2 ready!

🔨 Explore the source changes: 57b4809

🔍 Inspect the deploy log: https://app.netlify.com/sites/astro-docs-2/deploys/61ddaa413c8c950008bcded5

😎 Browse the preview: https://deploy-preview-2358--astro-docs-2.netlify.app

const { Component, internals, linkIds, pageData } = gopts;

// This adds the page name to the array so it can be shown as part of stats.
addPageName(pathname, opts);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like prettier/eslint did not catch this. I can’t recall if these are auto-fixed after merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We disabled prettier to run in CI a while back because it was breaking releases (it would format in main after merging the release PR). We should probably add it back and have it only run in non-main branches.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran yarn format and pushed the changes here. It's odd that EditorConfig didn't correct this.

Copy link
Contributor

@jonathantneal jonathantneal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Thanks for the note about there not being tests for this part of the app yet.

@matthewp matthewp merged commit 1007497 into main Jan 11, 2022
@matthewp matthewp deleted the page-names branch January 11, 2022 16:24
@github-actions github-actions bot mentioned this pull request Jan 11, 2022
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
* Fix build output in static build mode

* Adds a changeset

* Formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants