Closed ksntcrq closed 4 years ago
I copied and pasted the content of gatsby-browser.js
to gatsby-ssr.js
and everything is working fine for both the development and the production builds. It seems the server-side rendering wasn't working for the production build, maybe because it is not enabled locally?
Closing the issue.
Description
wrapPageElement
doesn't seem to be picked up during Netlify build even though it is in local.Steps to reproduce
Here is my
gatsby-browser.js
:Looking at some issues, I also tried to use commonjs modules:
In my pages, I use
const intl = useIntl();
and I am allowed to as every single page should be wrapped in the provider.You can find the codebase here.
Expected result
In both cases, everything works perfectly locally.
Actual result
The build on Netlify fails:
This means the pages aren't wrapped in the provider, which they are in local.
Environment
The following information is from my machine, so not everything is relevant for the bug as it is happening on Netlify:
The bug can obviously come from them, but it could also be something wrong within Gatsby.