-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (56 loc) · 3.08 KB
/
Copy path.env.example
File metadata and controls
66 lines (56 loc) · 3.08 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
# ==============================================================================
# CuteCode — Environment Variables
# ==============================================================================
# Copy this file to .env.development and fill in your values:
# cp .env.example .env.development
#
# Never commit .env.development or any file containing real secrets.
# ==============================================================================
# ------------------------------------------------------------------------------
# App
# ------------------------------------------------------------------------------
# Base URL of your application (no trailing slash)
NEXT_PUBLIC_BASE_URL="http://localhost:3000"
# ------------------------------------------------------------------------------
# Supabase Auth — https://supabase.com
# ------------------------------------------------------------------------------
# Project URL and keys from Dashboard → Project Settings → API
NEXT_PUBLIC_SUPABASE_URL="https://your-project.supabase.co"
# Publishable (anon) key — safe to expose to the browser
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY="sb_publishable_..."
# Secret (service role) key — SERVER ONLY, never expose to the browser
SUPABASE_SERVICE_ROLE_KEY="sb_secret_..."
# ------------------------------------------------------------------------------
# Dodo Payments — https://dodopayments.com
# ------------------------------------------------------------------------------
# Get these from your Dodo Payments Dashboard
DODO_PAYMENTS_API_KEY="your_api_key"
DODO_PAYMENTS_WEBHOOK_KEY="whsec_..."
# URL to redirect users after successful checkout
DODO_PAYMENTS_RETURN_URL="http://localhost:3000/checkout/success"
# Environment: "test_mode" for development, "live_mode" for production
DODO_PAYMENTS_ENVIRONMENT="test_mode"
# Product IDs per plan (Dashboard → Products)
NEXT_PUBLIC_DODO_PRODUCT_PRO="pdt_..."
NEXT_PUBLIC_DODO_PRODUCT_PREMIUM="pdt_..."
# ------------------------------------------------------------------------------
# Database — PostgreSQL
# ------------------------------------------------------------------------------
# Connection string for your PostgreSQL database
# Format: postgresql://USER:PASSWORD@HOST:PORT/DATABASE
DATABASE_URL="postgresql://user:password@localhost:5432/cutecode"
# ------------------------------------------------------------------------------
# Dub (optional) — Short links for shared snippets (https://dub.co)
# ------------------------------------------------------------------------------
DUB_TOKEN=""
# ------------------------------------------------------------------------------
# Cron Security
# ------------------------------------------------------------------------------
# Secret token to protect cron job endpoints from unauthorized access
# Generate with: openssl rand -hex 32
CRON_SECRET="generate-with-openssl-rand-hex-32"
# ------------------------------------------------------------------------------
# Misc (optional)
# ------------------------------------------------------------------------------
# Log verbosity: trace | debug | info | warn | error
LOG_LEVEL="info"