forked from vercel-labs/tersa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-sample
More file actions
141 lines (108 loc) · 4.72 KB
/
Copy pathenv-sample
File metadata and controls
141 lines (108 loc) · 4.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# =============================================================================
# TERSA ENVIRONMENT VARIABLES
# =============================================================================
# Copy this file to .env.local and fill in your actual values
# Remove any services you don't plan to use
# =============================================================================
# UPSTASH REDIS
# =============================================================================
UPSTASH_REDIS_REST_URL=https://your-redis-url.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_redis_token
# =============================================================================
# RESEND (EMAIL SERVICE)
# =============================================================================
RESEND_TOKEN=re_your_resend_token
RESEND_EMAIL=your-email@domain.com
# =============================================================================
# STRIPE (PAYMENTS)
# =============================================================================
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_HOBBY_PRODUCT_ID=prod_your_hobby_product_id
STRIPE_PRO_PRODUCT_ID=prod_your_pro_product_id
STRIPE_USAGE_PRODUCT_ID=prod_your_usage_product_id
STRIPE_CREDITS_METER_ID=mtr_your_credits_meter_id
STRIPE_CREDITS_METER_NAME=your_meter_name
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# =============================================================================
# SUPABASE - See SUPABASE_SETUP.md for detailed instructions
# =============================================================================
# For LOCAL DEVELOPMENT (after running `npx supabase start`):
# POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
# NEXT_PUBLIC_SUPABASE_ANON_KEY=your_local_anon_key_from_supabase_start_output
# SUPABASE_SERVICE_ROLE_KEY=your_local_service_role_key_from_supabase_start_output
# For PRODUCTION (from your Supabase dashboard):
POSTGRES_URL=postgresql://your_postgres_connection_string
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
# Auth webhook secret (generate random string)
SUPABASE_AUTH_HOOK_SECRET=v1,whsec_your_auth_hook_secret
# =============================================================================
# AI PROVIDERS
# =============================================================================
# OpenAI
OPENAI_API_KEY=sk-your_openai_api_key
# Google AI
GOOGLE_GENERATIVE_AI_API_KEY=your_google_ai_api_key
# Groq
GROQ_API_KEY=gsk_your_groq_api_key
# DeepSeek
DEEPSEEK_API_KEY=sk-your_deepseek_api_key
# Anthropic
ANTHROPIC_API_KEY=sk-your_anthropic_api_key
# XAI (Grok)
XAI_API_KEY=xai-your_xai_api_key
# AWS Bedrock
AWS_ACCESS_KEY_ID=your_aws_access_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
AWS_REGION=us-east-1
# FAL AI
FAL_API_KEY=your_fal_api_key
# Together AI
TOGETHER_AI_API_KEY=tgp_v1_your_together_ai_api_key
# Cohere
COHERE_API_KEY=your_cohere_api_key
# Vercel AI
VERCEL_API_KEY=v1:your_vercel_api_key
# Mistral
MISTRAL_API_KEY=your_mistral_api_key
# Hume AI
HUME_API_KEY=your_hume_api_key
# LMNT
LMNT_API_KEY=your_lmnt_api_key
# Perplexity
PERPLEXITY_API_KEY=pplx-your_perplexity_api_key
# Replicate
REPLICATE_API_TOKEN=your_replicate_api_token
# =============================================================================
# OTHER AI MODELS
# =============================================================================
# MiniMax
MINIMAX_GROUP_ID=your_minimax_group_id
MINIMAX_API_KEY=your_minimax_api_key
# RunwayML
RUNWAYML_API_SECRET=key_your_runwayml_api_secret
# Luma AI
LUMA_API_KEY=luma-your_luma_api_key
# Black Forest Labs
BF_API_KEY=your_bf_api_key
# =============================================================================
# CLIENT-SIDE (PUBLIC) VARIABLES
# =============================================================================
# Cloudflare Turnstile (CAPTCHA)
NEXT_PUBLIC_TURNSTILE_SITE_KEY=your_turnstile_site_key
# PostHog (Analytics)
NEXT_PUBLIC_POSTHOG_KEY=your_posthog_key
NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com
# =============================================================================
# SETUP INSTRUCTIONS
# =============================================================================
# 1. Copy this file to .env.local: cp env-sample .env.local
# 2. Fill in your actual API keys and configuration values
# 3. Never commit .env.local to version control
# 4. Each service requires account setup and API key generation
# 5. Remove unused services to avoid validation errors
# 6. Some services offer free tiers for development
# 7. Make sure to use test/development keys for local development
# 8. For production, set these variables in your deployment platform