env property

String get env

Environment resolution order:

  1. --env flag (set via Endpoints.setEnv)
  2. APPFLIGHT_ENV shell variable
  3. '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';