env property
String
get
env
Environment resolution order:
- --env flag (set via Endpoints.setEnv)
- APPFLIGHT_ENV shell variable
- 'prod' (default — what external users always want)
Values: local | stage | prod
local and stage are AppFlight-internal backends used only when
hacking on the CLI or Cloud Functions.
Implementation
static String get env =>
_envOverride ?? Platform.environment['APPFLIGHT_ENV'] ?? 'prod';