I have a Gatsby site and some Netlify functions in the same repo. The Gatsby site uses the response from the functions (specifically a GraphQL one that uses apollo-lambda), and what I think that is happening is that the Gatsby site tries to hit the GQL endpoint before it’s ready.
That said, I’d like to know if:
Is it possible to run the functions first, and then run the build command using
netlify dev? If so, how can I do that?
If that’s not possible, what could be a workaround? I imagine something like having two Netlify sites, one for the GraphQL function and another for the static site (which is kind of a bummer because that would make me have 2 deploy processes, etc)