Skip to Content

Environment Variables

Configure your Nexus theme storefront with environment variables.

Variables

# Required - Finqu API FINQU_STOREFRONT_URL=https://your-storefront.finqu.dev FINQU_SECRET_KEY=sk_... NEXT_PUBLIC_FINQU_STOREFRONT_URL=https://your-storefront.finqu.dev NEXT_PUBLIC_FINQU_STOREFRONT_TOKEN=pk_... # Optional - Redis (enables production storage for templates) UPSTASH_REDIS_REST_URL=https://... UPSTASH_REDIS_REST_TOKEN=...
VariableRequiredDescription
FINQU_STOREFRONT_URLYesFinqu storefront API URL
FINQU_SECRET_KEYYesSecret API key (server-side only)
NEXT_PUBLIC_FINQU_STOREFRONT_URLYesPublic storefront URL (client-side)
NEXT_PUBLIC_FINQU_STOREFRONT_TOKENYesPublic API token (client-side)
UPSTASH_REDIS_REST_URLNoRedis URL for production storage
UPSTASH_REDIS_REST_TOKENNoRedis token for production storage

Storage

  • Development – When Redis vars are not set, templates are stored in the data/ directory.
  • Production – When UPSTASH_REDIS_REST_URL is set, templates are stored in Redis.

Security

  • Never commit secrets; add .env.local to .gitignore.
  • Only NEXT_PUBLIC_* variables are available in the browser; do not put secrets there.

Next Steps