private networking connect front to server
Hi, I am trying to connect my angular app with my server made with nestJS, I really don't understand at all how private networking works, in my enviroments i am doing this, it is correct?
serverUrl: 'https://gateway.railway.internal:3000',
or, when I can see the port from my server? this is the default nestjs port but i don t know if is the same in railway, is the url ok or not, thank you
6 Replies
Project ID:
3a912af4-59a3-41ea-838e-72eab5c3579f
3a912af4-59a3-41ea-838e-72eab5c3579f
angular does client side rendering, this means the clients browser will also be making the api calls, thus you need to use the public domain of your service when making the api calls from your angular app, if a client could make a call to an api on the private network, well it wouldn't be much a private network now would it lol
cc @Melissa improvements for the private networking documentation, perhaps a nice diagram like the ones used in the recent blogs?
thank you
any other questions? π
no, it's all π