Skip to main content

get_app_env

Function get_app_env 

Source
pub fn get_app_env() -> String
Expand description

Get the current application environment name (dev, staging, prod).

Checks in order: APP_ENV, ENVIRONMENT, ENV, defaults to “development”.