-
Hi guys! Not sure if this is conceptual or a matter of lack of knowledge, but most repos I've attempted for Gatsby Headless Storefronts, is that my 10,000+ variant store will prevent the build b/c of timeouts, etc. Is there a way to modify his repo to retrieve only 1 collection (images, products, etc.) and make a headless store completely from 1 shopify collection vs. pulling all products/images in? I'm not looking for you to do the work, I just need pointed in the correct direction if it's possible. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @dancrodev, But first I would suggest trying to play with |
Beta Was this translation helpful? Give feedback.
-
@dancrodev also you may take a look at this package - https://github.com/gatsbyjs/gatsby-source-shopify-experimental |
Beta Was this translation helpful? Give feedback.
Hi @dancrodev,
Surely this is possible. One way to achieve it is to fork
gatsby-source-shopify
plugin and modify it to fetch only one collection that you are interested in (or only products with some tag in it). Then use your modified plugin to fetch data from Shopify with Gatsby Storefront.But first I would suggest trying to play with
GATSBY_STALL_RETRY_LIMIT
,GATSBY_STALL_TIMEOUT
,GATSBY_CONNECTION_TIMEOUT
,GATSBY_INCOMPLETE_RETRY_LIMIT
to eliminate timeouts.