You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure this is a bug, but without any way to reliably reproduce the issue (for a start, we'd need to make a copy of Wordpress and generate a load of fake content) it might be more useful as a discussion.
We have a Gatsby site that rebuilds every morning, sourcing content from Wordpress, but recently (and at some point in the past) it sometimes substitutes the development index.html over the built version. Having downloaded a copy of the site from Netlify, it seems like all the other files have built correctly, just that the index file is wrong.
I would assume that a production build would never try to copy the development index.html, so I find this rather confusing.
Just in case this isn't clear, we get this at the root of the site:
This seems like a very binary thing to go wrong, so what code path during the build could possibly lead to this? Any ideas how to debug this, or where to start looking in the Gatsby codebase?
PS the build command is gatsby clean && gatsby build so this issue is with a cache clear.
(Gatsby v5, building on Netlify with latest @netlify/plugin-gatsby)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm pretty sure this is a bug, but without any way to reliably reproduce the issue (for a start, we'd need to make a copy of Wordpress and generate a load of fake content) it might be more useful as a discussion.
We have a Gatsby site that rebuilds every morning, sourcing content from Wordpress, but recently (and at some point in the past) it sometimes substitutes the development
index.html
over the built version. Having downloaded a copy of the site from Netlify, it seems like all the other files have built correctly, just that the index file is wrong.I would assume that a production build would never try to copy the development index.html, so I find this rather confusing.
Just in case this isn't clear, we get this at the root of the site:
This seems like a very binary thing to go wrong, so what code path during the build could possibly lead to this? Any ideas how to debug this, or where to start looking in the Gatsby codebase?
PS the build command is
gatsby clean && gatsby build
so this issue is with a cache clear.(Gatsby v5, building on Netlify with latest
@netlify/plugin-gatsby
)Keywords: empty page, WSOD
Beta Was this translation helpful? Give feedback.
All reactions