Hi team, we've been hunting down a bug with our app today, occurring on many PR Environments and it's come down to RAILWAY_STATIC_URL no longer existing and being replaced by RAILWAY_PUBLIC_DOMAIN.

Where are the docs on this?! I can't find anything. Surely instead of removing it you should deprecate it? Unless it's a bug of course, or a memo i've missed. This has broken our project for most of the day.

I've got a Google Cache version of your Variables section of your website (screenshot) and can see RAILWAY_STATIC_URL there but now it's been replaced by RAILWAY_PUBLIC_DOMAIN (2nd screenshot)
Hi Brody, thanks for responding. It was blank yesterday - despite no config changes - and the change to RAILWAY_PUBLIC_DOMAIN resolved the issue. It might work now but I don't have time to juggle the ENV vars again. Cheers
Jump to solution
And now NIXPACKS_NO_CACHE=1 doesn't seem to be working on the same project so I can't bust the cache
I got the email release today, so the issue above seems that RAILWAY_STATIC_URL doesn't work (it may now if it's been fixed?), it's just been straight swapped with RAILWAY_PUBLIC_DOMAIN instead of phased out
RAILWAY_STATIC_URL still exists https://utilities.up.railway.app/env-vars?prefix=RAILWAY_
that service was redeployed a few seconds ago
oh and I'm not sure why but apologies, this thread has seemed to have flown under the radar until your message just now
Hi Brody, thanks for responding. It was blank yesterday - despite no config changes - and the change to RAILWAY_PUBLIC_DOMAIN resolved the issue. It might work now but I don't have time to juggle the ENV vars again. Cheers
glad you've got it working!
Just confirming something please. I've got everything working but I've found something unusual.

In the screenshot, ASSET_HOST and EMAIL_HOST point to their respective Shared Variables. The Shared Variables both point to {{RAILWAY_PUBLIC_DOMAIN}}. This setup doesn't work – both ASSET_HOST and EMAIL_HOST return nothing.

To get it working, which i've done in the last hour, I had to not use Shared Variables. I had to set ASSET_HOST and EMAIL_HOST to {{RAILWAY_PUBLIC_DOMAIN}} directly and not through Shared Variables.

We've always set these two variables (and many more) using Shared Variables and it's always worked, has this changed? Is this a bug?
yeah thats just not how it works
you want to reference the service's RAILWAY_PUBLIC_DOMAIN directly
any reason why you are trying to go through the shared variables?
this would be how it's intended to be used
and don't worry, that service name will auto update if you change the service name in its own settings
Thanks Brody, I appreciate the response and understand where I was going wrong with that
no problem!

Looking for more? Join the community!

Recommended Posts
My Subscription issueHello dear support guys: I found that I have been downgraded to No Subscription.. If my memory is rIs it normal for hello world json to return in 600ms? - GO FIBERHelp setting up a monorepoI'm getting this error when deploying my project. I made sure no other deployments are running, but Deployment and logging issues (Maven)Hello, My program is running fine locally, but when I deploy it with Railway, I start seeing issuesIssues with Postgres DBI don't really understand why I am not seeing any tables in my DB. Seeding works, but the database sversion 'GLIBC 2.29' not foundweird error that seems to be because of my code, but it works on my computer <:bing_shrug:5837915814Use rust nightlyidk how docker works but i cant use the nightly rust dockerfile image for some reasonFix Missing libuuid LibraryHey, I am currently runnig into problems deploying my FastAPI backend after adding a new dependency I can no longer connect to my MySQL database, even after restarting the databaseI'm not sure what my project id is. My link is this: https://railway.app/project/31b9ee92-06cc-44c1-RPC showing forbidden access 403Hi. I've got some crypto related script which pings an RPC server - it works fine locally but on raiHow would I connect my project with the SQL database ?I have a model for users and I would like to populate my production DB with them. How can I do that?Hipaa/socI wanted to confirm if the information on https://railway.app/help is current as the email listed boMemory consumption differenceSame app deployed in docker local and Hw(M1 16gb) consumes 52 mb with no load railway took 74mb can Nextjs 13 Environmental variableHello! I recently installed Nextjs to try out the "new" app directory, because I heard server actioRailway CLI postgresql not installed?I installed the CLI and postgresql on my computer to use pgloader to migrate a mysql db to postgres How do I hook up my frontend correctly./I am able to deploy my backend but my frontend is not working yet. Error: ``` #8 [4/5] RUN npm ruStyling bug on project service usage pageIs there a way I can have Railway restart manually every 2 hours?Pretty self explanatory, I’m running some js codePostgres, Aspnet Core API and Angular WebguiHi guys. I'm new here and getting to know railway! I find it fantastic for us. I am lost. I would lCannot change default provider for environment thats created during GitHub Pull RequestI posted about this a while back (https://discord.com/channels/713503345364697088/112689969354953113