-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.template
More file actions
87 lines (72 loc) · 3.64 KB
/
.env.template
File metadata and controls
87 lines (72 loc) · 3.64 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
# Podcast Framework - Environment Variables Template
#
# Copy this file to .env.local and fill in your values
# NEVER commit .env.local to git (it contains secrets)
# ============================================================================
# Sanity CMS (Required)
# ============================================================================
# Create a Sanity project at: https://sanity.io/manage
# For website (public - exposed to client)
PUBLIC_SANITY_PROJECT_ID=your_project_id_here
PUBLIC_SANITY_DATASET=production
PUBLIC_SANITY_API_VERSION=2024-01-01
# For Sanity Studio (server-side only)
SANITY_PROJECT_ID=your_project_id_here
SANITY_DATASET=production
# For API routes that need write access (contribute, etc.)
SANITY_API_TOKEN=your_sanity_write_token_here
# ============================================================================
# Site Configuration (Required)
# ============================================================================
PUBLIC_SITE_URL=https://yourdomain.com
# ============================================================================
# Analytics (Optional but Recommended)
# ============================================================================
# Google Analytics 4
# Create property at: https://analytics.google.com
PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
# ============================================================================
# Newsletter (Optional)
# ============================================================================
# ConvertKit - configured in Sanity CMS, not here
# Add convertKitApiKey and convertKitFormId to your podcast document in Sanity
# ============================================================================
# Transcripts (Optional)
# ============================================================================
# OpenAI Whisper API
OPENAI_API_KEY=sk-your-openai-api-key
# Or AssemblyAI
# ASSEMBLYAI_API_KEY=your_assemblyai_api_key
# ============================================================================
# Email (Required for API routes)
# ============================================================================
# Resend - for email notifications (contribute form)
# Sign up at: https://resend.com
RESEND_API_KEY=re_your_resend_api_key
RESEND_FROM_EMAIL=noreply@yourdomain.com # Must be verified domain in Resend
NOTIFICATION_EMAIL=contributions@yourdomain.com # Where to receive contributions
# ============================================================================
# Deployment (Cloudflare Pages)
# ============================================================================
# These are usually configured in Cloudflare dashboard, not .env
# CLOUDFLARE_ACCOUNT_ID=your_account_id
# CLOUDFLARE_API_TOKEN=your_api_token
# ============================================================================
# Error Tracking (Optional but Recommended for Production)
# ============================================================================
# Sentry - for error monitoring
# Sign up at: https://sentry.io
SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
# COMMIT_REF is usually auto-populated by hosting providers (Cloudflare, Netlify, Vercel)
# ============================================================================
# Optional Settings
# ============================================================================
# Sanity Studio URL (for email links)
STUDIO_URL=https://yourdomain.com
# CORS allowed origin (for API routes)
# ALLOWED_ORIGIN=https://yourdomain.com
# ============================================================================
# Development
# ============================================================================
# Uncomment for local development
# NODE_ENV=development