The following environment variable names configure MOI deployments (validated via packages/shared-types/src/env-validator.ts):
| Variable Name | Requirement | Purpose |
|---|---|---|
DATABASE_URL | Required | PostgreSQL connection string with pooling support. |
NEXT_PUBLIC_CHAIN_ID | Required | EVM Chain ID (42220 for Celo Mainnet). |
NEXT_PUBLIC_RPC_URL | Required | Celo JSON-RPC provider (https://forno.celo.org). |
INTERNAL_POLICY_HMAC_SECRET | Required | HMAC-SHA256 enclave key for policy attestation tokens. |
TEXTILE_API_BASE_URL | Optional | Textile FX API endpoint (defaults to https://api.textilecredit.com/v2). |
BUY_GATEWAY_URL | Optional | usebuy.ai catalog endpoint (defaults to https://gateway.usebuy.ai). |
CELO_ATTRIBUTION_TAG | Required | ERC-8021 protocol marker (celo_c9cb9a59fc4c). |