Pull request environment variable
scarabcoder
PROOP

2 years ago

Is there a way to determine if the current environment is a pull request environment via environment variables? I have some testing tools that I'd like to enable in PR environments, but for security reasons I don't want them to accidentally turn on for other environments.

Closed

3 Replies

2 years ago

you could check the value of RAILWAY_ENVIRONMENT_NAME ?


scarabcoder
PROOP

2 years ago

Hm, good idea. The PR environments should alway start with -pr- right?


2 years ago

yep!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...