About Private networking
Hi, I saw Railway has https://docs.railway.app/reference/private-networking Private network domain, do I understand correctly, that with this feature, I can use it to call between services as long as they are hosted on Railway? For example from the
frontend
service, I can call http://backend.railway.internal/api/posts
to get the posts from backend
?Solution:Jump to solution
I can call http://backend.railway.internal/api/posts to get the posts from backendyes, only if this call is made from the sever side of for example a nextjs app...
6 Replies
Project ID:
N/A
N/A
Solution
I can call http://backend.railway.internal/api/posts to get the posts from backendyes, only if this call is made from the sever side of for example a nextjs app
sidenote, you would need to set that backend to listen on a fixed port, and then use the port in the url when calling that internal domain
thanks @Brody , so it's similar to
http://localhost:1337
😄 ?very similar, just with friendly domain names