The value of my read variable is different from that edited.
ProjectID: 32e7c04c-c58a-41a6-9e8c-320a473294f7
Reading and copying (clipboard) of my variable
RAILWAY_ENVIRONMENT
are production
, editing the variable is DEVELOPMENT
:
The Railway documentation does not present the variable as provided by the railways: RAILWAY_ENVIRONMENT.
And all services in the same project have the same bug.
Can you tell me if my post will allow the problem to be reported to your dev team?
What is the procedure to follow so that we can resolve it?Solution:Jump to solution
It can't take any value other than the one railway provides it, it's reserved
4 Replies
Project ID:
32e7c04c-c58a-41a6-9e8c-320a473294f7
that variable is reserved for railway and will always reflect the railway environment you have deployed in, perhaps you want something like
NODE_ENV
?
or simply add an environment to your project called development
https://docs.railway.app/guides/environments
tl;dr not a bug or issue per se, just a slight incorrect use of the variableRAILWAY_ENVIRONMENT can take what value?
I can't find it in the documentation:
https://docs.railway.app/reference/variables#railway-provided-variables
Solution
It can't take any value other than the one railway provides it, it's reserved