-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
63 lines (43 loc) · 1.87 KB
/
Copy path.env.example
File metadata and controls
63 lines (43 loc) · 1.87 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
# ─── Public (Frontend) ───
NEXT_PUBLIC_SITE_NAME=PAYLOAD CMS
# Optional
NEXT_PUBLIC_HOME_SLUG=home
# 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:3060
# Server URL used for API requests (required in headless mode if backend runs separately)
NEXT_PUBLIC_SERVER_URL=http://localhost:3060
# 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:5446/payload
# ─── Payload ───
# Required for JWT and encryption
PAYLOAD_SECRET=your-payload-secret
# Used for draft preview mode
PREVIEW_SECRET=your-preview-secret
# ─── Media Storage (Cloudflare R2 - Optional) ───
# If not set, media will be stored locally on the server.
# To enable R2, fill all values below.
# Recommended: enable CDN caching by creating a Cloudflare Cache Rule for your image domain
R2_BUCKET=your-bucket-name
R2_BUCKET_PREFIX=payload_cms
R2_ENDPOINT=https://<account-id>.r2.cloudflarestorage.com
R2_ACCESS_KEY_ID=your-access-key-id
R2_SECRET_ACCESS_KEY=your-secret-access-key
NEXT_PUBLIC_R2_PUBLIC_URL=https://img.your-domain.com
# ─── Form Email ───
# 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_FROM_NAME=cms
EMAIL_SMTP_HOST=smtp-relay.brevo.com
EMAIL_SMTP_PORT=587
EMAIL_SMTP_USER=your-smtp-username
EMAIL_SMTP_PASS=your-smtp-password