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(gatsby): also include default-site-plugin #33472

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Oct 8, 2021

Description

We should also include default gatsby-node inside the query-engine for people who have schema APIs in their root.

This can make engines less reliable when people are doing fs.readFile in the global scope, dsg/ssr will not be able to find these files. I tried doing treeshaking but engines speed blew up so I have to look into another way.

Documentation

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 8, 2021
@wardpeet wardpeet added gatsby 4 and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Oct 8, 2021
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

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

I tried doing treeshaking but engines speed blew up so I have to look into another way.

So not a concern for this PR I figure?

@wardpeet
Copy link
Contributor Author

I'm experimenting here #33484. So yes not a concern for this PR.

@wardpeet wardpeet merged commit 785b04b into master Oct 11, 2021
@wardpeet wardpeet deleted the fix/local-gatsby-node-engine branch October 11, 2021 12:35
wardpeet added a commit to herecydev/gatsby that referenced this pull request Oct 29, 2021
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants