-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenvironment.example
More file actions
86 lines (67 loc) · 2.82 KB
/
Copy pathenvironment.example
File metadata and controls
86 lines (67 loc) · 2.82 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
# PR Cat Environment Variables Template
# Copy this file to .env.local and fill in your values
# ===========================================
# AUTHENTICATION (Required)
# ===========================================
# Generate with: openssl rand -base64 32
NEXTAUTH_SECRET=your-random-32-character-secret-here
# For local development: http://localhost:3000
# For production: https://your-domain.vercel.app
NEXTAUTH_URL=http://localhost:3000
APP_URL=http://localhost:3000
# ===========================================
# GITHUB OAUTH APP (Required)
# ===========================================
# Create at: https://github.com/settings/developers
# Callback URL: ${NEXTAUTH_URL}/api/auth/callback/github
GITHUB_OAUTH_CLIENT_ID=your_github_oauth_client_id
GITHUB_OAUTH_CLIENT_SECRET=your_github_oauth_client_secret
# ===========================================
# GITHUB APP (Required for repository access)
# ===========================================
# Create at: https://github.com/settings/apps
# See ENVIRONMENT_SETUP.md for detailed permissions
GITHUB_APP_ID=your_github_app_id
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
YOUR_PRIVATE_KEY_HERE
-----END RSA PRIVATE KEY-----"
NEXT_PUBLIC_GITHUB_APP_SLUG=your-github-app-slug
# Optional but recommended for production
GITHUB_WEBHOOK_SECRET=your_webhook_secret
# ===========================================
# DATABASE (Required)
# ===========================================
# Turso database - Sign up at: https://turso.tech
# Quick setup:
# 1. Install Turso CLI: curl -sSfL https://get.tur.so/install.sh | bash
# 2. Create database: turso db create pr-cat
# 3. Get URL: turso db show pr-cat --url
# 4. Create token: turso db tokens create pr-cat
TURSO_URL=libsql://your-database.turso.io
TURSO_TOKEN=your_turso_auth_token
# Optional: Connection pool size (default: 5)
TURSO_POOL_SIZE=5
# ===========================================
# AI PROVIDERS (Optional)
# ===========================================
# Configure provider, model, and API key per organization in Settings > AI.
# Recommended model for new Google configurations: stable gemini-3.8-flash.
# These optional environment values do not populate organization AI settings.
# Select None in Settings > AI to disable categorization for an organization.
AI_PROVIDER=none
# AI_PROVIDER=openai
# OPENAI_API_KEY=your_openai_api_key
# AI_PROVIDER=anthropic
# ANTHROPIC_API_KEY=your_anthropic_api_key
# AI_PROVIDER=google
# GOOGLE_API_KEY=your_google_api_key
# ===========================================
# APPLICATION (Optional)
# ===========================================
# Port for local development (default: 3000)
PORT=3000
# Secret for the POST /api/migrate endpoint (required in production).
# Generate with: openssl rand -base64 32
# MIGRATION_SECRET=your-migration-secret-here
# Environment (development | test | production)
NODE_ENV=development