Stop guessing where your code is running.
Hardcoding environment checks is risky and hard to maintain. Environment Info lets your apps detect where they run straight from the platform, with zero configuration and no Site Properties.
What you get
IsProductionEnvironment
GetRequestDomain()
GetClientIPAddress
Limitations
Environment Info reads values through OutSystems platform assemblies that aren't a documented public API. A platform update can change them without notice, so test your apps after upgrading the platform and report any issue on GitHub.
Open source, with full documentation, on GitHub.
Breaking change:
X-Forwarded-For
Fixes:
MIT License