EnverMT
Apollo | graphql | proxy
Backend runs on Sprapi on pm2. Frontend is Nuxt on pm2. Installed Apollo Graphql server to get data from backend.
I wanted to proxy
localhost:3000/graphql
to localhost:1337/graphql
.
How to correctly proxy, so user will not see backend. User must see that graphql request is going to localhost:3000/graphql
, but in reality these request should proxy to localhost:1337/graphql
5 replies