Skip to content

Environment variables

operator

Every env var, its scope (server vs NEXT_PUBLIC), what it gates, and the never-commit rules.

Operator documentation. This page is for HISS operators and is excluded from the public docs navigation and search indexing.

Core launch variables

VariableScopePurpose
NEXT_PUBLIC_SITE_URLpublicCanonical production URL for metadata, share links, OG images.
DATABASE_URLserverMarketplace Postgres (Neon) pooled connection string. Persistence is gated on its presence.
DIRECT_DATABASE_URLserverUnpooled connection for migrations, if the provider separates it (Neon also injects DATABASE_URL_UNPOOLED).
NEXT_PUBLIC_ENABLE_DB_REQUIREDpublic"true" makes production builds fail when DATABASE_URL/SESSION_SECRET are missing. Flip only after provisioning.
SESSION_SECRETserverSigns wallet session cookies (SIWE-style auth). Rotate to revoke all sessions.
NEXT_PUBLIC_WALLETCONNECT_PROJECT_IDpublicEnables the WalletConnect connector. Optional — injected browser wallets work without it.

Bankr / x402

VariableScopePurpose
BANKR_API_KEYserverBankr Agent API. Server-side only; never NEXT_PUBLIC.
BANKR_BASE_URLserverBankr API base (default https://api.bankr.bot).
BANKR_X402_TREASURY_PAYTOserverpayTo treasury wallet for deployed x402 services.
BANKR_AGENT_PROFILE_IDserverBankr Agent Profile id, once the profile exists.

Robinhood Chain RPC (Alchemy)

Server-side reads prefer Alchemy (the recommended Robinhood Chain infra provider), then the generic env override, then the rate-limited public endpoint. Resolution lives in apps/web/lib/chainHealth.ts; readiness APIs report the provider label only, never the URL. Verify locally with pnpm check:chain.

VariableScopePurpose
ALCHEMY_ROBINHOOD_MAINNET_RPC_URLserverOptional Alchemy Robinhood Chain mainnet endpoint. The URL embeds an API key — server-only, never NEXT_PUBLIC. When set it is preferred by server-side chain reads; when unset, reads use ROBINHOOD_CHAIN_RPC_URL or the public endpoint.
ALCHEMY_ROBINHOOD_TESTNET_RPC_URLserverAlchemy Robinhood Chain testnet endpoint (optional; public testnet RPC is the fallback).
ROBINHOOD_CHAIN_RPC_URLserverGeneric mainnet RPC endpoint — the primary server-side RPC configuration. Falls back to the rate-limited public endpoint when unset.
ROBINHOOD_CHAIN_TESTNET_RPC_URLserverGeneric testnet RPC override.
NEXT_PUBLIC_ROBINHOOD_CHAIN_IDpublicChain id 4663 (optional; code defaults come from @hiss/core — safe to expose, it is public network metadata).
NEXT_PUBLIC_ROBINHOOD_CHAIN_TESTNET_IDpublicTestnet chain id 46630 (optional, code default).

Pre-existing app flags

The Phase 5 flags (AI_PROVIDER, NEXT_PUBLIC_ENABLE_X402, oracle/chain RPC settings, and the mock/live feature flags) are documented in Modes & flags. Live-path flags ship disabled by default and require release approval to flip.

Checking an environment

bash
pnpm check:env            # local
vercel env ls production  # names + scopes only
vercel env pull .env.local