Falsafa
SystemHigh-Level Design

Configuration Map

Every environment variable across frontend and backend, cross-referenced by the components that read it and the impact if missing.

System Configuration Map

Every environment variable across both packages, cross-referenced by the components that read it.

VariableSet inUsed byBreaks if missing
NEXT_PUBLIC_SUPABASE_URLfrontend/.env.localFrontend browser + serverAuth, DB, Storage - entire app down
NEXT_PUBLIC_SUPABASE_ANON_KEYfrontend/.env.localFrontend browser + serverAuth, DB - entire app down
SUPABASE_SERVICE_ROLE_KEYfrontend/.env.localFrontend admin clientRole checks, admin panel, book upload - degraded
SUPABASE_URLbackend/.envBackend Supabase readsBackend cannot verify books or sessions
SUPABASE_SERVICE_ROLE_KEYbackend/.envBackend Supabase readsBackend cannot read/write any data
ML_SERVICE_URLfrontend/.env.localFrontend chat proxy, uploadChat and book upload fail - cannot reach backend
BACKEND_API_KEYfrontend/.env.localSent as X-API-Key header to backendNo effect - backend does not validate this header
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYfrontend/.env.localStripe Elements (browser)Checkout page cannot render
STRIPE_SECRET_KEYfrontend/.env.localCreate payment intentCheckout fails
STRIPE_WEBHOOK_SECRETfrontend/.env.localWebhook signature verificationWebhook returns 400 - purchases not fulfilled
NEXT_PUBLIC_APP_URLfrontend/.env.localStripe redirects, link generationStripe redirects may fail
REDIS_URLbackend/.envBackend cache, queue, locksChat and ingestion fail entirely
QDRANT_URLbackend/.envVector searchChat continues without grounding, ingestion fails
QDRANT_API_KEYbackend/.envQdrant authenticationVector search fails
TYPESENSE_API_KEYbackend/.envTypeSense authenticationBM25 search fails
TYPESENSE_NODESbackend/.envTypeSense client configBM25 search fails
LLM_PROVIDERbackend/.envChat + ingestion LLM callsNo LLM calls possible - chat and ingestion fail
OPENAI_API_KEYbackend/.envOpenAI LLM + embedding callsChat and ingestion fail if provider is OpenAI
ANTHROPIC_API_KEYbackend/.envAnthropic LLM callsChat fails if provider is Anthropic
EMBEDDING_PROVIDERbackend/.envChunk embeddingIngestion indexing fails
RERANKER_API_KEYbackend/.envJina rerankerFalls back to score-sort (soft failure)
NEXT_PUBLIC_DEBUG_MODEfrontend/.env.localDebug bypassNo effect - debug mode disabled
NEXT_PUBLIC_MAX_FILE_SIZEfrontend/.env.localFile validationFalls back to hardcoded default
NEXT_PUBLIC_MAX_COVER_SIZEfrontend/.env.localFile validationFalls back to hardcoded default

On this page