Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
49 lines (44 loc) · 2.18 KB
/
Copy path.env.example
File metadata and controls
49 lines (44 loc) · 2.18 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
# Firebase web client configuration.
# Copy this file to `.env.local` and fill in the values from your Firebase
# project settings (Project settings → General → Your apps → SDK setup).
#
# Note: these "web API keys" are safe to expose in client bundles. Security is
# enforced by Firebase Authentication and Firestore Security Rules, NOT by
# keeping these values secret. See docs/ADMIN.md for the security model.
VITE_FIREBASE_API_KEY=
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=
VITE_FIREBASE_STORAGE_BUCKET=
VITE_FIREBASE_MESSAGING_SENDER_ID=
VITE_FIREBASE_APP_ID=
VITE_FIREBASE_MEASUREMENT_ID=
# Local preview only: set to `true` to bypass Firebase auth and view the admin
# panel as a fake super_admin with demo data (see docs/ADMIN.md §5.5). This is
# hard-gated on `import.meta.env.DEV`, so it can NEVER activate in a production
# build. Leave empty/false otherwise.
# WARNING: Never enable this in production environments.
VITE_ADMIN_DEV_MOCK=
# Vercel serverless API: restrict the Gemini estimation endpoint to your
# Firebase Hosting domain so no external site can drain your quota.
# Set this in Vercel → Project → Settings → Environment Variables.
ALLOWED_ORIGIN=https://servio-0.web.app
# Vercel serverless API (api/quote.ts, api/razorpay.ts): secret pepper used to
# HMAC the caller IP before it is stored in the quote rate-limit collection, so
# a stored identifier can't be reversed back to a raw IP. Set to any long random
# string (e.g. `openssl rand -hex 32`). The quote endpoint returns 500 if unset.
RATE_LIMIT_HASH_SECRET=
# Vercel serverless API: Firebase Admin service-account JSON (single line) used
# by api/quote.ts and api/razorpay.ts to write leads/payments with admin rights.
# In production set this in Vercel → Settings → Environment Variables.
FIREBASE_SERVICE_ACCOUNT=
# --- Admin bootstrapping ---
# To seed the first super_admin account, use the CLI script:
# npx tsx scripts/seed-admin.ts
#
# The script requires a Firebase service account key. Set the path via:
# GOOGLE_APPLICATION_CREDENTIALS=./serviceAccountKey.json
#
# Or provide admin credentials via env vars:
# ADMIN_EMAIL=admin@example.com
# ADMIN_PASSWORD=secure-password-here
# ADMIN_NAME=Super Admin