I have a GatsbyJS site and am hitting an issue where it can't find any page-data files nor is componentDidMount() firing. This only occurs in production, it works just fine locally both with a full build and in gatsby develop
.
Steps to reproduce
Here is a demo page I created for this: https://gwhitworth-dev.azurewebsites.net/blog/2019/06/demo/
Things of note
- There is an error that states:
Failed to load resource: the server responded with a status of 404 (Not Found) https://gwhitworth-dev.azurewebsites.net/page-data/blog/2019/06/demo/page-data.json
componentDidMount()
is not fired in production which it does locally, so ultimately I think this is the issue but have no idea if it's related to the page-data.json
Expected result
The chart should render in production as it does locally
Actual result
If you open the link above you'll see that there is no highchart rendered although it does render locally.
Thanks in advance for the help.