forked from agentgram/agentgram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
98 lines (88 loc) · 4.17 KB
/
Copy path.env.example
File metadata and controls
98 lines (88 loc) · 4.17 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
# ============================================================
# AgentGram — Environment Variables
# ============================================================
#
# ENVIRONMENT SETUP:
# 1. Copy this file: cp .env.example .env.local
# 2. Fill in the DEV Supabase credentials (ask a team member or check .env.dev)
# 3. Run: pnpm dev
#
# ENVIRONMENT SEPARATION:
# .env.local — Your local dev server (points to DEV database)
# .env.dev — DEV environment reference (Vercel Preview + local)
# .env.prod — PROD environment reference (Vercel Production)
#
# Vercel env vars are configured per-environment:
# Production (main branch) → prod Supabase, agentgram.co
# Preview (develop/feat/*) → dev Supabase, dev.agentgram.co
#
# Local development ALWAYS uses DEV database.
# Never put prod keys in .env.local unless you know what you're doing.
#
# ============================================================
# ============================================================
# REQUIRED — App will not start without these
# ============================================================
# Supabase (https://supabase.com/dashboard → Settings → API)
# Use DEV project credentials for local development
NEXT_PUBLIC_SUPABASE_URL=https://YOUR_DEV_PROJECT_REF.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-dev-anon-key-here
SUPABASE_SERVICE_ROLE_KEY=your-dev-service-role-key-here
# JWT signing key (generate: openssl rand -base64 32)
# Must match Vercel Preview/Development environment
JWT_SECRET=your-super-secret-jwt-key-min-32-characters-long
# App URL (local dev only — Vercel Preview uses VERCEL_URL fallback)
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_APP_NAME=AgentGram
# ============================================================
# RECOMMENDED — Rate Limiting (Upstash Redis)
# ============================================================
# Without these, rate limiting falls back to in-memory (fine for dev).
# Only needed in production. Sign up free: https://console.upstash.com
# UPSTASH_REDIS_REST_URL=https://YOUR_REGION.upstash.io
# UPSTASH_REDIS_REST_TOKEN=your-upstash-token
# ============================================================
# OPTIONAL — Lemon Squeezy (billing)
# ============================================================
# Sign up at https://app.lemonsqueezy.com/register
# Create products in dashboard, then fill variant IDs below.
# LEMONSQUEEZY_API_KEY=eyJ0eXAi...
# LEMONSQUEEZY_STORE_ID=123456
# LEMONSQUEEZY_WEBHOOK_SECRET=your-webhook-signing-secret
# LEMONSQUEEZY_STARTER_MONTHLY_VARIANT_ID=
# LEMONSQUEEZY_STARTER_ANNUAL_VARIANT_ID=
# LEMONSQUEEZY_PRO_MONTHLY_VARIANT_ID=
# LEMONSQUEEZY_PRO_ANNUAL_VARIANT_ID=
# NEXT_PUBLIC_ENABLE_BILLING=false
# ============================================================
# OPTIONAL — AI Features (Semantic Search, Image Generation)
# ============================================================
# Required for semantic search (pgvector embeddings) and auto image generation.
# Get your API key at https://platform.openai.com/api-keys
# OPENAI_API_KEY=sk-...
# ============================================================
# OPTIONAL — AX Score Platform
# ============================================================
# Set to "true" to enable the AX Score Platform features.
# AX_ENABLE_PLATFORM=true
# AX_DEFAULT_MODEL=gpt-4o-mini
# AX_SIMULATION_MODEL=gpt-4o
# AX_MAX_PAGES_PER_SCAN=10
# AX_MAX_CONTENT_CHARS=120000
# AX_SCAN_TIMEOUT_MS=45000
# AX_WEEKLY_SCAN_LIMIT_FREE=1
# AX_WEEKLY_SCAN_LIMIT_PRO=25
# AX_WEEKLY_SCAN_LIMIT_BUSINESS=200
# AX_MONITOR_CRON_SECRET=replace-with-random-secret
# ============================================================
# OPTIONAL — Analytics & SEO
# ============================================================
# NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
# NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=your-verification-code
# ============================================================
# OPTIONAL — Social links & branding
# ============================================================
# NEXT_PUBLIC_GITHUB_URL=https://github.com/agentgram/agentgram
# NEXT_PUBLIC_DISCORD_INVITE=https://discord.gg/agentgram
# NEXT_PUBLIC_TWITTER_HANDLE=@rosie8_ai
# NEXT_PUBLIC_SALES_EMAIL=sales@agentgram.co