24 days ago
I created a new Next.js project and it was given a domain automatically (domain.up.railway.app). After deployment, I changed the domain to newdomain.up.railway.app. It updated the settings UI and the app is accessible on the internet via the new domain, but the deployment ui still shows the old one and the PUBLIC_URL environmental variable still hasn't updated.
I've already redeployed.
Project ID: bd0601f5-0970-407b-b42b-da5f6fad7cf4
27 Replies
24 days ago
Feel free to ping me if you reply.
24 days ago
did you remove the old domain after creating the new domain?
24 days ago
I replaced it. The networking tab in settings only displays one domain.
Attachments
24 days ago
fcsbeta.up.railway.app is the new domain
24 days ago
For the service variable PUBLIC_DOMAIN you need to redeploy, did you redeploy since provisioning the new domain?
24 days ago
yes
24 days ago
this is the deploy ui for the same service as the previous screenshot
Attachments
24 days ago
as you can see, it shows the same unchanged domain
24 days ago
alright let me see if I can reproduce
24 days ago
I created a next.js service, added a postgres database (at which point the next.js service disappeared from the ui completely until i reloaded -- im assuming a bug), added environmental variables to the next.js service, then deployed all changes and the services started deploying for the first time (the postgresql db was provisioned when I added the service -- but not deployed).
After both services were deployed, I modified the given public url and redeployed. It updated in the settings/networking UI but not in the deployment UI or the ${{RAILWAY_PUBLIC_DOMAIN}} env var
24 days ago
I deployed a service, with a default domain provisioned, and then I visited that domain
after I changed the domain name to something else, and deployed changes, which resulted in both the variable and the domain on the ui changing
meaning to say I can't reproduce this
can you check if the site is still running on the old domain / not running on the new domain? trying to see if this is a UI issue or not
24 days ago
The site is successfully running on the new domain.
When I visit the old domain (as displayed in the deployment ui), I am met with this page:
Attachments
24 days ago
interesting, so it's just a UI bug then, weird
24 days ago
what browser are you using?
24 days ago
I'm using Zen - a firefox based browser. I'll check in a different browser
24 days ago
alright, sounds good, thank you for checking
24 days ago
I just tried in Arc and its still showing the wrong URL
24 days ago
I don't believe that its solely ui as the ${{RAILWAY_PUBLIC_DOMAIN}} environmental variable resolves to the incorrect domain.
24 days ago
even in the running deployment?
24 days ago
yes
24 days ago
meaning the deployment sees it as being the old domain and not the new domain?
24 days ago
I believe so. I'll double check
24 days ago
thank you 🙏
24 days ago
Yes. I just confirmed.
24 days ago
I'm stepping away from my laptop and won't be able to respond for a while. Let me know if theres anything I can do to help.
24 days ago
Alright, I'll share this thread around and see if we're maybe overlooking something, otherwise I'll inform the team of this issue
24 days ago
when you're back, can you try changing the domain again? maybe the previous change didn't propagate or something