data client not working on production builds (when not using prerender
option)
#1354
Labels
alpha.2
bug
Something isn't working
CLI
Content as Data
documentation
Greenwood specific docs
v0.31.0
Milestone
Type of Change
Bug
Summary
While working on this project realized that there was a significant oversight in how the data client would work. It technically won't work as is without
prerender
enabled for a production build, since without prerendering, the custom JSON files per query will not be generated, leading to 404s in a production buildDetails
It seems for now we can get away with making a non-prerender fallback for the data client, where if prerendering was not used, we can just
fetch
graph.json and do the filtering client side.The text was updated successfully, but these errors were encountered: