Identity & environments
moxie.identity
Populated during Setup / Moxie initialization. Commonly used fields:
| Field | Role |
|---|---|
| site | Resolved site key (foxnews, foxbusiness, …) |
| path | Path after site prefix |
| env | Active data environment (dev, stage, prod) |
| flags | Feature flags / toggles from settings |
| urls | Environment-specific base URLs for partners and internal services |
| hosts | Host header–related values |
Use identity instead of hardcoding origins in handlers.
MOXIE_ENV
- Set on Lambda via Terraform for dev/stage/prod stacks.
- Local
yarn devdefaults to dev unless you pass--env=stageetc.
Query override: ?env=
?env=dev|stage|prodforces upstream fetches as if that environment were active — useful for comparing stage vs prod data without redeploying.
CDN / Unmoxed
UNMOXED(local) can bypass CDN checks when testing through tunnels — see Unmoxed & tunnels.
Debugging
?debugga=setup:identity