Configuration
All configuration is done through environment variables in the .env file.
Environment Variables
Copy the example file:
cp .env.example .envRequired Variables
| Variable | Description | Where to get it |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL | Supabase Dashboard → Settings → API |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Supabase anonymous key | Same location |
SUPABASE_SERVICE_ROLE_KEY | Supabase service key (server-side only) | Same location |
DATABASE_URL | PostgreSQL connection string | Supabase → Settings → Database |
AI Provider Variables
| Variable | Description | Options |
|---|---|---|
AI_PROVIDER | Which AI provider to use | openai, anthropic, google |
AI_MODEL | Which model to use | gpt-4o-mini, claude-sonnet-4-20250514, etc. |
OPENAI_API_KEY | OpenAI API key | platform.openai.com |
ANTHROPIC_API_KEY | Anthropic API key | console.anthropic.com |
GOOGLE_GENERATIVE_AI_API_KEY | Google AI (Gemini) API key | aistudio.google.com |
Only set the API key for the provider you're using.
Stripe Variables
| Variable | Description |
|---|---|
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY | Stripe publishable key |
STRIPE_SECRET_KEY | Stripe secret key |
STRIPE_WEBHOOK_SECRET | Stripe webhook signing secret |
Optional Variables
| Variable | Default | Description |
|---|---|---|
NEXT_PUBLIC_APP_URL | http://localhost:3000 | Your app's public URL |
SYSTEM_PROMPT | "You are a helpful assistant." | The AI system prompt |
RESEND_API_KEY | — | Resend email API key |
Customizing the System Prompt
The system prompt defines your AI's personality. Change it in .env:
SYSTEM_PROMPT="You are a professional copywriter. Help users write engaging blog posts, social media captions, and marketing copy."This single change transforms Ignitra from a generic AI chat into a specialized product.