Incorrect domain in env var RAILWAY_PUBLIC_DOMAIN
ched-dev
HOBBYOP

2 months ago

I am seeing the old URL for my public domain even though I have updated to a simpler domain. This update was done days ago and I just now noticed it is a problem because I added CSP policies for 'self' and they don't match up.

Is there a way to refresh this?

Screenshot_2026-03-08_at_6.38.21_PM.png

Screenshot_2026-03-08_at_6.38.32_PM.png

3 Replies

2 months ago

Usually it updates on redeploy, have you redeployed since making that change?


ched-dev
HOBBYOP

23 days ago

It eventually fixed itself, but I ran into this again on a new project. I think it's a bug.

Here's steps to reproduce:

  • Generate a new public domain
  • Edit the domain to something different (I dropped the environment name from it)
  • Update an environment variable to reference ${{RAILWAY_PUBLIC_DOMAIN}} and apply changes via message
  • After deploy, view the Variables tab and it still shows the old domain
  • I also tried a Redeploy from the deployment actions menu and still no luck

I'd guess it's domain propagation time, but nothing indicates it shouldn't be instant.


23 days ago

I think you might be right, I ran into another user with this same issue since this thread

I'll keep an eye out for more reports, and then I'll compile them and surface them to the team

Thanks for the repro steps! 🙏


Welcome!

Sign in to your Railway account to join the conversation.

Loading...