-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
48 lines (48 loc) · 2.51 KB
/
.env.example
File metadata and controls
48 lines (48 loc) · 2.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# =============================================================================
# Frontend (Create React App) — copy to .env.local for overrides (gitignored).
# =============================================================================
#
# Defaults WITHOUT any file:
# npm start → REACT_APP_RUNTIME_ENV=local, API http://localhost:5000
# npm run build:pages → Cloudflare (REACT_APP_API_RELATIVE=1, same-origin /api)
# npm run build → REACT_APP_RUNTIME_ENV=live; default API base is empty (same-origin /api). Set REACT_APP_API_BASE_URL if the API is on another host.
#
# Optional overrides:
# REACT_APP_RUNTIME_ENV=local
# REACT_APP_RUNTIME_ENV=live
# REACT_APP_API_BASE_URL=http://localhost:5000
# If the API listens on another port (e.g. PORT=5001 in server .env), match it here and in package.json "proxy":
# REACT_APP_API_BASE_URL=http://localhost:5001
#
# Production build only: set to 'true' to keep browser console.* (default: muted in production)
# REACT_APP_ENABLE_CONSOLE_LOGS=true
#
# Firebase (client)
REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_STORAGE_BUCKET=
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=
REACT_APP_FIREBASE_APP_ID=
REACT_APP_FIREBASE_MEASUREMENT_ID=
#
# Optional: shown in newsletter admin UI (not a secret)
# REACT_APP_MARKETING_CONTACT_EMAIL=marketing@bakesbyolayide.com
# =============================================================================
# Backend (Node — repo root .env and/or backend/.env; both are loaded by server.js / backend/app.js)
# =============================================================================
# Express default listen port (local). Create React App also reads PORT from .env — this repo forces the
# dev server to port 3000 in craco.config.js so PORT=5000 for the API is safe.
# If something is still bound to 5000: npm run free-port-5000 (then restart npm run server)
# PORT=5000
# API_PORT=5001
# PORT=5001
# NODE_ENV=development
#
# Extra browser origins allowed to call the API (comma-separated). Use if the live site uses a host not
# already listed in backend/app.js (e.g. a Netlify preview URL).
# CORS_ORIGINS=https://your-preview.netlify.app
#
# Zoho SMTP / Firebase Admin — see backend/config; production secrets on Cloudflare Pages
# Staff notify BCC (optional): EMAIL_NEW_ORDER_NOTIFY_TO, EMAIL_NEW_CONTACT_ENQUIRY_NOTIFY_TO, EMAIL_NEW_REVIEW_NOTIFY_TO — see backend/.env.example
# Staff BCC (optional): EMAIL_NOTIFY_BCC_ORDERS, EMAIL_NOTIFY_BCC_ENQUIRIES — see backend/.env.example