Environment Variables
This document lists all environment variables required to run the Benefits Provider App UI.
Configuration Variables
# Base URL for provider API endpoints (no trailing slash)
VITE_PROVIDER_BASE_URL=<provider-api-base-url>
# Beckn App Platform identifier
VITE_BAP_ID=<bap-id>
# Beckn App Platform URI
VITE_BAP_URI=<bap-uri>
# Beckn Provider Platform identifier
VITE_BPP_ID=<bpp-id>
# Beckn Provider Platform URI
VITE_BPP_URI=<bpp-uri>
# Beneficiary application form iframe URL
VITE_BENEFICIERY_IFRAME_URL=<beneficiary-iframe-url>
# Benefit application form schema API endpoint
VITE_BENEFIT_SCHEMA_API=<benefit-schema-api-url>
# Provider catalog interface URL
VITE_PROVIDER_CATALOG_URL=<provider-catalog-url>
# Dashboard API URL (not in use, can be left empty)
VITE_APP_PROXY_API=Environment Types
The application supports different environment files:
.env.development- Development environment (used withyarn dev)
.env.production- Production environment (used withyarn build)
Security Notes
Environment File Handling
Never commit
.envfiles to version controlUse
.env.exampleas a templateKeep production credentials secure
Variable Exposure
All
VITE_prefixed variables are exposed to the clientNever store secrets in
VITE_variablesUse backend environment variables for sensitive data
Best Practices
Use different values for each environment
Validate environment variables on application startup
Last updated
