Answer the question
In order to leave comments, you need to log in
How to set up Node.js on Heroku?
There is a simple apollo-server. Works locally. In the sandbox we see something like:
Deploy to Heroku using CLI goes smoothly, environment variables are specified, the sandbox opens. Only here the request ends with an error:
"error": "NetworkError when attempting to fetch resource."
Answer the question
In order to leave comments, you need to log in
If you rummage a little in Basurman, watch the video https://youtu.be/ok6bu-3XRA8 . It is just about deploying an application on graphql and Apollo on Heroku.
And so, check, mb you specified the full path with the local host in the configuration of the Apollo client (such as localhost:5000/graphql ), but you just need ”/graphql”.
But look at the hair anyway
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question