Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
177 lines (152 loc) · 6.11 KB
/
Copy path.env.example
File metadata and controls
177 lines (152 loc) · 6.11 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# ===========================================
# DATABASE
# ===========================================
# Neon PostgreSQL connection string
# Format: postgresql://user:password@host/database?sslmode=verify-full
DATABASE_URL=
# ===========================================
# APPLICATION
# ===========================================
# Base URL of the app (no trailing slash)
# Local: http://localhost:3000
# Production: https://petit-meme.io
VITE_SITE_URL=http://localhost:3000
# Copy paste this
TZ=UTC
# Deployment environment: production | preview | development
# Set by Vercel on its own, declared by hand in .env.e2e only
# Absent, NODE_ENV decides
# The build copies it to VITE_VERCEL_ENV for the browser, nothing to declare
VERCEL_ENV=
# ===========================================
# AUTHENTICATION (Better Auth)
# ===========================================
# Secret key for session encryption (min 32 chars)
# Generate with: openssl rand -base64 32
BETTER_AUTH_SECRET=
# Salt used to derive the daily VisitorKey from an IP (min 32 chars)
# Must NOT be the same value as BETTER_AUTH_SECRET (it can be rotated on its own)
# Generate with: openssl rand -hex 32
VISITOR_KEY_SALT=
# Twitter OAuth credentials
# Get from: https://developer.x.com/en/portal/projects
AUTH_TWITTER_ID=
AUTH_TWITTER_SECRET=
# Discord OAuth credentials (optional)
# Get from: https://discord.com/developers/applications
# Redirect URI: {VITE_SITE_URL}/api/auth/callback/discord
AUTH_DISCORD_ID=
AUTH_DISCORD_SECRET=
# ===========================================
# VIDEO (Bunny CDN)
# ===========================================
# Get from: https://dash.bunny.net/stream
BUNNY_LIBRARY_ID=
BUNNY_ACCESS_KEY=
BUNNY_READ_ONLY_API_KEY=
BUNNY_TOKEN_AUTH_KEY=
# The value the "Original server only" Edge Rule expects in X-Original-Access-Key
BUNNY_ORIGINAL_ACCESS_KEY=
BUNNY_STORAGE_API_KEY=
BUNNY_STORAGE_ZONE_NAME=
# The public Storage zone of the images, such as each Meme's first frame
BUNNY_IMAGES_STORAGE_API_KEY=
BUNNY_IMAGES_STORAGE_ZONE_NAME=
# The origin of the pull zone, on its custom hostname under petit-meme.io,
# such as https://cdn.petit-meme.io (no trailing slash)
VITE_BUNNY_ORIGIN=
# The origin of the images pull zone, such as https://images.petit-meme.io
VITE_BUNNY_IMAGES_ORIGIN=
# (Optional) The origins of Bunny's APIs. Absent, Bunny's own answer
# Only the e2e suite sets them, to its local emulators
BUNNY_STREAM_API_ORIGIN=
BUNNY_STORAGE_API_ORIGIN=
# ===========================================
# FILES (Vercel Blob)
# ===========================================
# On Vercel, the SDK authenticates with OIDC: BLOB_STORE_ID plus the
# VERCEL_OIDC_TOKEN that Vercel rotates on its own
# Outside Vercel (local development), set the read-write token instead
# Get from: https://vercel.com/dashboard/stores
BLOB_STORE_ID=
BLOB_READ_WRITE_TOKEN=
# ===========================================
# SEARCH (Algolia)
# ===========================================
# Get from: https://dashboard.algolia.com/
# Server-only (never exposed to browser)
ALGOLIA_ADMIN_KEY=
ALGOLIA_SEARCH_KEY=
# Shared between server and client (VITE_ prefix = available in browser)
# The insights key is restricted to filters=status:PUBLISHED in the Algolia dashboard
VITE_ALGOLIA_APP_ID=
VITE_ALGOLIA_INSIGHTS_KEY=
VITE_ALGOLIA_INDEX=
# (Optional) One origin for every Algolia API. Absent, Algolia's own hosts
# answer. Only the e2e suite sets it, to its local emulator
VITE_ALGOLIA_ORIGIN=
# ===========================================
# AI (Google Gemini)
# ===========================================
# Get from: https://ai.google.dev/
GEMINI_API_KEY=
# ===========================================
# AI SEARCH (Anthropic Claude)
# ===========================================
# Get from: https://console.anthropic.com/
ANTHROPIC_API_KEY=
# (Optional) Absent, Anthropic's own API answers. Only the e2e suite sets it
ANTHROPIC_API_ORIGIN=
# ===========================================
# EMAILS (Resend)
# ===========================================
# Resend API key (starts with re_)
# Get from: https://resend.com/api-keys
RESEND_API_KEY=
# (Optional) Absent, Resend's own API answers. Only the e2e suite sets it
RESEND_API_ORIGIN=
# (Optional) Override all email recipients - for dev/testing
# Remove this in production
EMAIL_OVERRIDE_TO=
# (Optional) Override sender address - for dev/testing with Resend free domain
EMAIL_OVERRIDE_FROM=
# ===========================================
# PAYMENTS (Stripe)
# ===========================================
# Stripe secret key (starts with sk_)
# Get from: https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=
# (Optional) Absent, Stripe's own API answers. Only the e2e suite sets it
STRIPE_API_ORIGIN=
# Stripe price IDs for premium subscription (starts with price_)
STRIPE_MONTHLY_PRICE_ID=
STRIPE_ANNUAL_PRICE_ID=
# Stripe webhook secret (starts with whsec_)
# Run: stripe listen --forward-to localhost:3000/api/auth/stripe/webhook
STRIPE_WEBHOOK_SECRET=
# ===========================================
# CRON JOBS (Vercel Crons)
# ===========================================
# Secret for authenticating cron requests (min 16 chars)
# Generate with: openssl rand -hex 32
# Required: every cron route answers 401 while it is missing
CRON_SECRET=
# ===========================================
# END TO END TESTS (Playwright)
# ===========================================
# The suite reads .env.e2e, committed: it holds no real secret. It runs
# offline, against a throwaway Postgres and a local emulator for each outside
# service, all started by Playwright (see e2e/emulators)
# Run: pnpm run test:e2e (it builds and serves on its own)
# It declares VITE_SITE_URL on http://127.0.0.1:3100 and the matching PORT,
# so the dev server keeps localhost:3000 and its own cookie jar
# ===========================================
# ERROR MONITORING (Sentry)
# ===========================================
# Sentry DSN (public, safe to expose client-side)
# Get from: https://sentry.io/settings/projects/YOUR_PROJECT/keys/
VITE_SENTRY_DSN=
# Sentry auth token for source map uploads (build-time only)
# Get from: https://sentry.io/settings/auth-tokens/
# Also store in .env.sentry-build-plugin for local builds
SENTRY_AUTH_TOKEN=