2 months ago
RAILWAY_PUBLIC_DOMAIN is not updated when http url is changed.
I used reference variable but when I change url, it doesnot update in variables which breaks the application, so I need to add url manually. Is this railway bug or I'm missing something.
It works fine with custom domain but not with custom urls(provided from railway).
Pinned Solution
2 months ago
For the custom url like this, you can try to redeploy the service and then you can see reference variable will be updated.
Attachments
2 Replies
2 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 Railway • about 2 months ago
2 months ago
The RAILWAY_PUBLIC_DOMAIN will either show the generated Railway domain, or the custom domain, if configured. It will not show both.
https://docs.railway.com/variables/reference#railway-provided-variables
2 months ago
For the custom url like this, you can try to redeploy the service and then you can see reference variable will be updated.
Attachments
Status changed to Solved brody • about 2 months ago
