8 months ago
Hi, as described in the title I'm having issue connecting both services.
I'm using a React FE and a Fastify BE.
I've followed the instructions in here (https://docs.railway.com/guides/private-networking) and defined the env var as BACKENDURL=http://${{api.RAILWAYPRIVATE_DOMAIN}}:${{api.PORT}}
using the correct name instead of api.
In the BE I've defined the host to 0.0.0.0 and port as 8080.
Using public networking works without an issue but after adding console.logs to check requests being made in server and no request ir reaching the server when using private networking.
Am i missing a step in the configuration?
3 Replies
I apologize, I totally missed the explanation on Private Network Context
A web application that makes client-side requests cannot communicate to another service over the private network.
What I was trying to achieve is not possible.
8 months ago
!s
Status changed to Solved brody • 8 months ago