-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
25 lines (23 loc) · 1.51 KB
/
Copy path.env.example
File metadata and controls
25 lines (23 loc) · 1.51 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
# ─── Anthropic (required) ──────────────────────────────────────────────────
# Used by /api/parse to extract structured data from uploaded invoice PDFs.
# Get one at https://console.anthropic.com/settings/keys
ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# ─── Redis (optional — per-IP rate limiting) ───────────────────────────────
# If a URL + token are set, /api/parse rate-limits each IP (5 requests / 10 min).
# If they're missing, rate limiting FAILS OPEN (a warning is logged) so the app
# still runs locally without a Redis instance.
#
# "Redis on Vercel" is Upstash, provisioned through the Vercel Marketplace
# (Vercel's old first-party KV was deprecated). The code accepts EITHER naming,
# so you don't have to rename anything:
#
# • Provisioned at https://console.upstash.com/redis → use the UPSTASH_ vars
# • Provisioned via the Vercel dashboard (Storage tab) → Vercel auto-injects
# KV_REST_API_URL / KV_REST_API_TOKEN; nothing to set by hand.
#
# For local dev, set the UPSTASH_ pair (copied from either provider's console):
UPSTASH_REDIS_REST_URL=https://your-db.upstash.io
UPSTASH_REDIS_REST_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Alternatively, the Vercel Marketplace naming also works:
# KV_REST_API_URL=https://your-db.upstash.io
# KV_REST_API_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx