Developer portal · developer-portal §4.3

Environment badge

Sandbox, customer test or live, on every portal screen.

Theme
Contrast
Language
Motion
Text size
<EnvBadge env={portal.env} t={t} />

Accessibility

  • The environment is text, not only colour.

Usage

Do

  • Read it from NEXT_PUBLIC_API_ENVIRONMENT; unknown means live.

Don't

  • Never infer the environment on the client from the URL.

Platforms

Web
iOS
Web only (no native developer portal)
Android
Web only (no native developer portal)