-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[v2] PageRenderer exported from gatsby doesn't work in production #5920
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
Comments
Seems like a reasonable hack :-) Main thing is to avoid loading any extra code into production. |
m-allanson
added
the
type: bug
An issue or pull request relating to a bug in Gatsby
label
Jun 19, 2018
This was referenced Oct 27, 2023
This was referenced Oct 27, 2023
This was referenced Oct 27, 2023
This was referenced Oct 28, 2023
This was referenced Oct 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/gatsbyjs/gatsby/blob/v2/packages/gatsby/src/cache-dir/gatsby-browser-entry.js#L8-L15
JSONStore
used there isn't used in production anywhere else and will never render anything in production. My hacky solution to usepage-renderer.js
directly instead ofJSONStore
there for production builds seems to work, but I need to investigate it more and figure out not hacky solution to make it work for both production and development.For reference - here's hacky fix - pieh@fc3b255
The text was updated successfully, but these errors were encountered: