Guidance on Connecting Laravel Backend with React/Vite Frontend via Private Network
diazagustin99
PROOP

6 months ago

Hi Railway Support Team,

I’m currently running a Laravel backend and a React frontend (using Vite) on Railway. I would like to connect the frontend to the backend using Railway’s private network, instead of the public URLs.

Could you please provide guidance on:

  1. How to configure the backend URL for the frontend to use the private .railway.internal hostname and port.

  2. Any required settings in Railway to allow the frontend to communicate with the backend internally.

  3. Best practices for handling local development vs. deployment using the private network.

Thank you in advance for your support.

Best regards,

Agustin

2 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


6 months ago

Apologies but this looks like an issue with the application level code. Due to volume, we can only answer platform level issues.

I've made this thread public so that the community might be able to help with you query.


Status changed to Awaiting User Response Railway 6 months ago


6 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open jake 6 months ago


Loading...