Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions app/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ChainForge frontend environment template
# Copy this file to .env.local for local development.
# Only NEXT_PUBLIC_* values are exposed to the browser. Do not add secrets here.

# Backend API base URL used by frontend hooks and API clients.
NEXT_PUBLIC_API_URL=http://localhost:4000

# Stellar network label expected by the frontend and connected wallet.
# Allowed values in validation: testnet, futurenet, mainnet, standalone.
NEXT_PUBLIC_STELLAR_NETWORK=testnet

# Optional compatibility alias for older code paths that read NEXT_PUBLIC_NETWORK.
NEXT_PUBLIC_NETWORK=testnet

# Public Stellar endpoints used by wallet and contract integrations.
NEXT_PUBLIC_STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
NEXT_PUBLIC_STELLAR_SOROBAN_RPC_URL=https://soroban-testnet.stellar.org

# Deployed AidEscrow contract ID for the selected network.
NEXT_PUBLIC_AID_ESCROW_CONTRACT_ID=

# Optional environment name shown in UI indicators.
NEXT_PUBLIC_ENV_NAME=local

# Development-only mock API switch. Set false when testing against a real backend.
NEXT_PUBLIC_USE_MOCKS=true

# Optional role used by local empty states and demo flows.
# Supported app roles include guest, donor, admin, operator, and recipient.
NEXT_PUBLIC_USER_ROLE=guest

# Optional local performance logging for dashboard fetches.
NEXT_PUBLIC_DASHBOARD_PERF=0

# Optional reviewer/demo checklist route.
NEXT_PUBLIC_ENABLE_DEMO_CHECKLIST=false
1 change: 1 addition & 0 deletions app/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel
Expand Down