Exit to App
Reference

Environment & Configuration

Reference guide for all required and optional environment variables.

The following environment variable names configure MOI deployments (validated via packages/shared-types/src/env-validator.ts):

Variable NameRequirementPurpose
DATABASE_URLRequiredPostgreSQL connection string with pooling support.
NEXT_PUBLIC_CHAIN_IDRequiredEVM Chain ID (42220 for Celo Mainnet).
NEXT_PUBLIC_RPC_URLRequiredCelo JSON-RPC provider (https://forno.celo.org).
INTERNAL_POLICY_HMAC_SECRETRequiredHMAC-SHA256 enclave key for policy attestation tokens.
TEXTILE_API_BASE_URLOptionalTextile FX API endpoint (defaults to https://api.textilecredit.com/v2).
BUY_GATEWAY_URLOptionalusebuy.ai catalog endpoint (defaults to https://gateway.usebuy.ai).
CELO_ATTRIBUTION_TAGRequiredERC-8021 protocol marker (celo_c9cb9a59fc4c).