2 months 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
2 months ago
Feel free to ping me if you reply.
2 months ago
did you remove the old domain after creating the new domain?
2 months ago
I replaced it. The networking tab in settings only displays one domain.
Attachments
2 months ago
fcsbeta.up.railway.app is the new domain
2 months ago
For the service variable PUBLIC_DOMAIN you need to redeploy, did you redeploy since provisioning the new domain?
2 months ago
yes
2 months ago
this is the deploy ui for the same service as the previous screenshot
Attachments
2 months ago
as you can see, it shows the same unchanged domain
2 months ago
alright let me see if I can reproduce
2 months 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
2 months 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
2 months 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
2 months ago
interesting, so it's just a UI bug then, weird
2 months ago
what browser are you using?
2 months ago
I'm using Zen - a firefox based browser. I'll check in a different browser
2 months ago
alright, sounds good, thank you for checking
2 months ago
I just tried in Arc and its still showing the wrong URL
2 months ago
I don't believe that its solely ui as the ${{RAILWAY_PUBLIC_DOMAIN}} environmental variable resolves to the incorrect domain.
2 months ago
even in the running deployment?
2 months ago
yes
2 months ago
meaning the deployment sees it as being the old domain and not the new domain?
2 months ago
I believe so. I'll double check
2 months ago
thank you 🙏
2 months ago
Yes. I just confirmed.
2 months 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.
2 months 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
2 months ago
when you're back, can you try changing the domain again? maybe the previous change didn't propagate or something