-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
78 lines (54 loc) · 2.27 KB
/
Copy path.env.example
File metadata and controls
78 lines (54 loc) · 2.27 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
# ─── Public (Frontend) ───
# Optional
NEXT_PUBLIC_SITE_NAME=PAYLOAD ECOMMERCE
# Language of the application (supported: en | he)
# If empty or invalid, defaults to "en"
NEXT_PUBLIC_LANG=en
# Base URL used for metadata, sitemap, canonical links (frontend domain)
NEXT_PUBLIC_BASE_URL=http://localhost:3344
# Server URL used for API requests (required in headless mode if backend runs separately)
NEXT_PUBLIC_SERVER_URL=http://localhost:3344
# Optional GA4 / GSC / Ads / Pixels (leave empty to disable)
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=your-google-verification-code
NEXT_PUBLIC_GOOGLE_ANALYTICS=G-XXXXXXXXXX
NEXT_PUBLIC_GOOGLE_ADS=AW-XXXXXXXXXX
NEXT_PUBLIC_TIKTOK_PIXEL=XXXXXXXXXXXXXXX
NEXT_PUBLIC_META_PIXEL=XXXXXXXXXXXXXXX
# ─── Database ───
DATABASE_URL=postgres://admin:admin@localhost:5443/postgres
# ─── Payload ───
# Required for JWT and encryption
PAYLOAD_SECRET=your-payload-secret
# Used for draft preview mode
PREVIEW_SECRET=your-preview-secret
# ─── Media Storage (Optional) ───
# If not set, media will be stored locally on the server.
# Choose the template implementation: vercel | s3
STORAGE_PROVIDER=vercel
# Public media URL for the selected provider (Vercel Blob URL or R2 custom domain)
NEXT_PUBLIC_STORAGE_URL=
BUCKET_PREFIX=payload_ecommerce
# Vercel Blob
BLOB_TOKEN=
# S3-compatible alternative (Cloudflare R2 example)
# Recommended: enable CDN caching by creating a Cloudflare Cache Rule for your image domain
R2_BUCKET=
R2_ENDPOINT=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
# ─── Order Notifications ───
# Enable order email + WhatsApp notifications.
# If set to false, the email and WhatsApp settings below are not required.
SEND_EMAIL_WHATSAPP=false
# Email (SMTP) Get credentials from your SMTP provider.
# I recommend Brevo (https://brevo.com) — easy free tier with just phone verification required.
EMAIL_FROM_ADDRESS=yourstore@example.com
EMAIL_SMTP_HOST=smtp-relay.brevo.com
EMAIL_SMTP_PORT=587
EMAIL_SMTP_USER=your-smtp-username
EMAIL_SMTP_PASS=your-smtp-password
# WhatsApp (CallMeBot)
# To get an API key, send this message from your WHATSAPP_NUMBER:
# https://wa.me/34694236731?text=I%20allow%20callmebot%20to%20send%20me%20message
CALLMEBOT_API_KEY=your-callmebot-api-key
WHATSAPP_NUMBER=+1234567890