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

Move buildTime into new node type #21827

Merged
merged 4 commits into from
Mar 2, 2020
Merged

Move buildTime into new node type #21827

merged 4 commits into from
Mar 2, 2020

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Feb 28, 2020

Description

This creates a new node type SiteBuildTime, with one node that includes a buildTime field. It then replaces the buildTime field on Site with a resolver that returns the value from the SiteBuildTime node. This prevents changes to buildTime affecting the Site node contentDigest, which would mark any page that uses siteMetadata as dirty.

Based on discussion #21795 (comment)

Related Issue

Replaces #21795

@ascorbic ascorbic requested a review from a team as a code owner February 28, 2020 14:26
Copy link
Contributor

@freiksenet freiksenet left a comment

Choose a reason for hiding this comment

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

Small note.

Also check that formatting works after it.

Copy link
Contributor

@vladar vladar left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@freiksenet freiksenet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Mar 2, 2020
@gatsbybot gatsbybot merged commit d877b82 into master Mar 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/build-time-node branch March 2, 2020 07:43
@sidharthachatterjee
Copy link
Contributor

Published in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants