Railway frontend reactjs REACT_APP_URL changes automatically
ukhancanstudy
PROOP

7 days ago

Hello Team,

Here is the case story:

  1. I have 2 environments viz Development and Testing inside same project.
  2. I have both frontend and backend deployed in the projects.
  3. I have used, example, https://dev.backendexample.com and https://testing.devbackend.com for dev and testing environment respectively.
  4. I have the repo connected through Github. Whenever I push a code in the repo the deployement done is automatically.
  5. Whenever I make a new deployement to the Testing environement, the backend URL is getting automatically changed to https://dev.backendexample.com dev backend instead of testing backend that I have provided through env variable.
  6. When I redploy the same commit then the issue is resolved.
  7. But this is happening all the time. And it is frustrrating. I am premium member and the service I am getting is pathetic.

Please give me some resolution so that I need not have to to this again and again.

I am loooking forward to hearing from you soon.

Reagards,

Ubaidullah Khan

$20 Bounty

1 Replies

Railway
BOT

7 days ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway 7 days ago


thainx1
HOBBY

7 days ago

If you need to deploy the FE while still using the BE domain https://testing.devbackend.com, you can choose Docker as the build type and create a Dockerfile in the root folder with the configuration below. The build:test or build:dev command will depend on the BUILD_ENV environment variable that you set in Variables on Railway

image.png

image.png


Welcome!

Sign in to your Railway account to join the conversation.

Loading...