Hybrid approach for gatsby-source-contentful plugin, to set downloadLocal: true when in Netlify build, but on local to set it to false. #39315
Unanswered
alexPetkov92
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
Is there a way this to be done, because i am hiting a wall when trying to change queries to use gatsbyImageData or localFile;
I have the above function, to which i pass the query string, the idea is to find the gatsbyImageData and nest it inside localFile {} when the build is running on NETLIFY, so i can basically use NETLIFY as the CDN when users request a page.
But i get this error when i load the page:
These are the options for gatsby-source-contentful:
So is it possible to make this hybrid approach in Gatsby, in netlify to set donwloadLocal to true and on local development to false
Please let me know if you need any other code.
Beta Was this translation helpful? Give feedback.
All reactions