AnotherWrapper does not use one giant configuration file. The main config
surface is a mix of environment variables, shared site config in
config.ts,
and app-specific toolConfig.ts files.The Three Main Configuration Layers
1. Environment variables
.env.example is the source of truth for the repo’s environment variables.
This covers:
- Supabase
- AI providers
- payments
- analytics
- Meta attribution
- Sentry
- storage
2. Shared site config
config.ts defines the main shared site constants and route links, such as:
- site URLs
- support email
- route helpers
- marketing links
- template/app links
3. App-level tool config
Several product apps also have atoolConfig.ts file. These define app-specific
behavior such as:
- app title and metadata
- credits cost
- default model
- tool path
- app description
app/(apps)/vision/toolConfig.tsapp/(apps)/voice/toolConfig.tsapp/(apps)/structured-output/toolConfig.ts
Env Var Groups
Core App
These are the minimum basics:AI Providers
The repo supports multiple providers, but you only need the ones you actually plan to expose. Examples:- chat can work with many providers
- PDF RAG currently still depends on OpenAI embeddings
- image/video generation often depends on Replicate in addition to OpenAI or Google
- voice workflows depend on ElevenLabs
Storage
Uploads and generated assets depend on the S3-compatible storage settings:- chat file upload
- PDF document flows
- image outputs
- video outputs
- voice outputs
- vision uploads
Payments
The repo uses a provider-agnostic payment layer, but you still choose one provider with env vars.LEMON_SQUEEZY_WEBHOOK_SECRETSTRIPE_SECRET_KEYSTRIPE_WEBHOOK_SECRETPOLAR_WEBHOOK_SECRET
LOOPS_API_KEYRESEND_API_KEYBREVO_API_KEY
Analytics
Analytics supports one or more providers:- PostHog
- Plausible
- DataFast
Meta Attribution
Meta Ads attribution is separate from normal analytics and is optional:Sentry
The minimum setup is:Best Practice For Beginners
Do not try to fill every env var on day one. The clean order is:- Supabase
- OpenAI
- storage
- your main payment provider
- your main email provider
- analytics
- optional extras like Meta and Sentry
Common Mistakes
- using
.envinstead of.env.local - using the wrong Supabase service key variable name
- enabling provider features without adding the matching secret
- expecting uploads to work without storage
- setting payment env vars but forgetting hosted checkout URLs
- forgetting that
NEXT_PUBLIC_APP_URLaffects auth redirects and runtime URL helpers

