-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
95 lines (75 loc) · 4.26 KB
/
env.example
File metadata and controls
95 lines (75 loc) · 4.26 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
# ── Public — safe for browser ──────────────────────────────
# Read via: getBrandColor(), getBaseUrl(), getWhatsappNumber(), etc.
# Prefix NEXT_PUBLIC_ required for client-side access.
# Brand color palette for UI theme
# Available: default, blue, green, red, amber, purple, teal, pink, orange, violet, etc.
# Must match a CSS palette file in lib/styles/palettes/
NEXT_PUBLIC_BRAND_COLOR=default
# Base URL of the application
# Used for: OG images, sitemaps, canonical URLs, API docs, JSON-LD
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# WhatsApp number for orders and booking inquiries
# Example: 593967310412 (Ecuador +593 96 731 0412 — sin + ni espacios)
# Must match the registered YCloud sender number
NEXT_PUBLIC_WHATSAPP_NUMBER=593967310412
# Enable search engine indexing
# false = robots.txt disallows all crawlers
NEXT_PUBLIC_INDEXING=false
# Max future weeks for agenda calendar booking (default: 4)
NEXT_PUBLIC_WEEK_MAX=4
# ── API Security ────────────────────────────────────────────
# Never exposed to the browser. Used in API routes and server code.
# API Key for protected endpoints (POST, PUT, DELETE)
# Required in x-api-key header
API_KEY=dev-key-change-in-production
# Max requests per minute for rate-limited endpoints (chat, whatsapp send)
# Default: 2 — applies to both Upstash Redis and in-memory fallback
RATE_LIMIT_MAX=2
# ── Upstash Redis ──────────────────────────────────────────
# Required for session persistence across serverless instances
# Get from https://console.upstash.com/ → Redis → REST API
KV_REST_API_URL=
KV_REST_API_TOKEN=
# ── YCloud WhatsApp ────────────────────────────────────────
# Enable/disable YCloud integration (default: false)
# false = opens wa.me link directly (no API call)
# true = sends via YCloud API, webhook enabled
YCLOUD_ENABLED=false
# YCloud API Key for sending WhatsApp messages programmatically
# Get it from https://console.ycloud.com/api-keys
# The sender "from" number is NEXT_PUBLIC_WHATSAPP_NUMBER (must match YCloud)
YCLOUD_API_KEY=
# YCloud Webhook Secret for incoming message verification
# Same value you configure in YCloud console webhook settings
YCLOUD_WEBHOOK_SECRET=
# ── WhatsApp Internal ──────────────────────────────────────
# Admin WhatsApp number (private, for admin detection in tools)
# Si no se define, cae a NEXT_PUBLIC_WHATSAPP_NUMBER
WS_ADMIN=
# Secret key for HMAC-anonymizing phone numbers in Redis
# Generate with: openssl rand -hex 32
WS_ENCRYPTION_KEY=
# ── Webhooks ────────────────────────────────────────────────
# URL for cookie consent webhook (optional)
# When set, POSTs consent data on every cookie accept/reject
# Payload: { consent, ip_hash, country, user_agent, timestamp }
COOKIE_WEBHOOK_URL=
# ── AI ──────────────────────────────────────────────────────
# AI Provider mode: "mixed" (gateway + openai key) or "openai" (only openai key)
# - mixed: chat/images via AI Gateway, transcription via OPENAI_API_KEY
# - openai: everything (chat, images, transcription) via OPENAI_API_KEY
# Recommended: "openai" if you need Zero Data Retention (built-in with OpenAI).
# "mixed" requires Vercel Pro/Enterprise for ZDR on the gateway.
AI_PROVIDER=mixed
# API Key for Vercel AI Gateway (OpenAI provider)
# Get it from https://console.vercel.com/integrations/ai
AI_GATEWAY_API_KEY=
# Zero Data Retention (default: false)
# Only available on Vercel Pro/Enterprise plans.
# When AI_PROVIDER=openai, OpenAI has ZDR by default (no data retention).
AI_GATEWAY_ZDR=false
# Required for transcription (always) and optionally for chat/images when AI_PROVIDER=openai
OPENAI_API_KEY=
# Webhook for certificate verification
# Used by GET /certificates page to validate user certificates
CERTIFICATE_WEBHOOK_URL=