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.
3 Replies
2 years ago
you could check the value of RAILWAY_ENVIRONMENT_NAME ?
2 years ago
yep!