-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
72 lines (61 loc) · 3.33 KB
/
Copy pathenv.example
File metadata and controls
72 lines (61 loc) · 3.33 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
# =============================================================================
# Infinite Craft Next - Environment Variables Example
# =============================================================================
# Copy this file to .env.local and fill in your actual values
# Restart the dev server after making changes
# =============================================================================
# -----------------------------------------------------------------------------
# AI Provider Configuration (At least ONE required)
# -----------------------------------------------------------------------------
# Note: Must use NEXT_PUBLIC_ prefix for client-side access
# Option 1: OpenAI / AIKIT (Recommended)
NEXT_PUBLIC_AIKIT_API_KEY=sk-proj-your-openai-key
NEXT_PUBLIC_AIKIT_ENDPOINT=https://api.openai.com/v1/chat/completions
NEXT_PUBLIC_AIKIT_MODEL=gpt-4o-mini
# Option 2: Google Gemini
NEXT_PUBLIC_GEMINI_API_KEY=AIzaSy-your-gemini-key
NEXT_PUBLIC_GEMINI_MODEL=gemini-2.0-flash-exp
# Option 3: Doubao (China)
NEXT_PUBLIC_DOUBAO_API_KEY=your-doubao-key
NEXT_PUBLIC_DOUBAO_CHAT_ENDPOINT=https://ark.cn-beijing.volces.com/api/v3/chat/completions
NEXT_PUBLIC_DOUBAO_CHAT_MODEL=doubao-lite-4k
# -----------------------------------------------------------------------------
# Supabase (Optional - for cloud sync and auth)
# -----------------------------------------------------------------------------
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
NEXT_PUBLIC_SUPABASE_ENABLED=true
# -----------------------------------------------------------------------------
# OAuth Providers (Optional - only needed if using GitHub/Google OAuth)
# -----------------------------------------------------------------------------
# For local Supabase development, these are used in supabase/config.toml
# For production, configure OAuth in Supabase Dashboard instead
# GITHUB_CLIENT_ID=your-github-client-id
# GITHUB_SECRET=your-github-secret
# GOOGLE_CLIENT_ID=your-google-client-id
# GOOGLE_SECRET=your-google-secret
# -----------------------------------------------------------------------------
# Vision API (Optional - for mobile photo feature)
# -----------------------------------------------------------------------------
# Vision API supports both dedicated keys or reusing AIKIT keys
# Option 1: Use dedicated OpenAI Vision API key
VISION_API_PROVIDER=openai
OPENAI_API_KEY=sk-proj-your-openai-key
OPENAI_VISION_MODEL=gpt-4o-mini
# Option 2: Reuse AIKIT configuration (no additional setup needed)
# If OPENAI_API_KEY is not set, Vision API will automatically use AIKIT_API_KEY
# Make sure AIKIT_MODEL supports vision (e.g., gpt-4o, gpt-4o-mini)
# Option 3: Use Google Gemini for Vision
# VISION_API_PROVIDER=google
# GOOGLE_API_KEY=AIzaSy-your-gemini-key
# GOOGLE_VISION_MODEL=gemini-2.0-flash-exp
# -----------------------------------------------------------------------------
# Analytics (Optional - for user behavior tracking)
# -----------------------------------------------------------------------------
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
# -----------------------------------------------------------------------------
# Other Configuration
# -----------------------------------------------------------------------------
NEXT_PUBLIC_APP_VERSION=1.0.0
NEXT_PUBLIC_DEFAULT_LOCALE=en