Detecting environment at runtime

Is there a way to detect the name of the environment the app is deployed to on the XDN?
E.g. could I access it via environment variable like this:

process.env.XDN_ENVIRONMENT

1 Like

See Moovweb XDN Documentation - Environments

You can use:

process.env.XDN_ENVIRONMENT_NAME