|
| 1 | +# ============================================================================= |
| 2 | +# codingcat.dev — Environment Variables |
| 3 | +# ============================================================================= |
| 4 | +# Copy this file to .env.local and fill in the values. |
| 5 | +# Variables prefixed with NEXT_PUBLIC_ are exposed to the browser. |
| 6 | +# All other variables are server-only. |
| 7 | +# ============================================================================= |
| 8 | + |
| 9 | +# ----------------------------------------------------------------------------- |
| 10 | +# Public (client-side) variables — NEXT_PUBLIC_* |
| 11 | +# ----------------------------------------------------------------------------- |
| 12 | + |
| 13 | +# Sanity CMS — project configuration |
| 14 | +NEXT_PUBLIC_SANITY_PROJECT_ID= # Sanity project ID (from sanity.io/manage) |
| 15 | +NEXT_PUBLIC_SANITY_DATASET= # Sanity dataset name (e.g. "prod") |
| 16 | +NEXT_PUBLIC_SANITY_API_VERSION= # Sanity API version date (e.g. "2024-01-01") |
| 17 | + |
| 18 | +# Site URLs |
| 19 | +NEXT_PUBLIC_BASE_URL= # Canonical base URL (e.g. "https://codingcat.dev") |
| 20 | +NEXT_PUBLIC_VERCEL_URL= # Vercel preview URL (auto-set by Vercel) |
| 21 | + |
| 22 | +# Algolia search — public keys |
| 23 | +NEXT_PUBLIC_ALGOLIA_APP_ID= # Algolia application ID |
| 24 | +NEXT_PUBLIC_ALGOLIA_INDEX= # Algolia index name |
| 25 | + |
| 26 | +# Analytics |
| 27 | +NEXT_PUBLIC_FB_PIXEL_ID= # Facebook Pixel tracking ID |
| 28 | + |
| 29 | +# Preview mode |
| 30 | +NEXT_PUBLIC_PREVIEW_TOKEN_SECRET= # Secret token for Sanity preview mode |
| 31 | + |
| 32 | +# ----------------------------------------------------------------------------- |
| 33 | +# Server-only variables |
| 34 | +# ----------------------------------------------------------------------------- |
| 35 | + |
| 36 | +# Sanity CMS — API tokens |
| 37 | +SANITY_API_READ_TOKEN= # Sanity read token (viewer role) |
| 38 | +SANITY_API_WRITE_TOKEN= # Sanity write token (editor role) |
| 39 | + |
| 40 | +# Algolia search — admin keys |
| 41 | +PRIVATE_ALGOLIA_ADMIN_API_KEY= # Algolia admin API key (server-side indexing) |
| 42 | +PRIVATE_ALGOLIA_WEBOOK_SECRET= # Shared secret for Algolia webhook verification |
| 43 | + |
| 44 | +# Syndication |
| 45 | +PRIVATE_SYNDICATE_WEBOOK_SECRET= # Shared secret for syndication webhook verification |
| 46 | +PRIVATE_DEVTO= # Dev.to API key (cross-posting) |
| 47 | +PRIVATE_HASHNODE= # Hashnode API key (cross-posting) |
| 48 | + |
| 49 | +# Cloudflare Turnstile (bot protection) |
| 50 | +CLOUDFLARE_TURNSTILE_SECRET_KEY= # Turnstile server-side secret key |
| 51 | + |
| 52 | +# Cron / scheduled jobs |
| 53 | +CRON_SECRET= # Secret for authenticating cron job requests |
| 54 | + |
| 55 | +# YouTube integration |
| 56 | +YOUTUBE_API_KEY= # YouTube Data API v3 key |
| 57 | +YOUTUBE_CHANNEL_ID= # YouTube channel ID to fetch videos from |
| 58 | + |
| 59 | +# Vercel |
| 60 | +VERCEL_PROJECT_PRODUCTION_URL= # Production URL (auto-set by Vercel) |
| 61 | + |
| 62 | +# ----------------------------------------------------------------------------- |
| 63 | +# Supabase |
| 64 | +# ----------------------------------------------------------------------------- |
| 65 | +NEXT_PUBLIC_SUPABASE_URL= # Supabase project URL (e.g. "https://xxx.supabase.co") |
| 66 | +NEXT_PUBLIC_SUPABASE_ANON_KEY= # Supabase anonymous/public key |
| 67 | +SUPABASE_SERVICE_ROLE_KEY= # Supabase service role key (server-only, bypasses RLS) |
0 commit comments