-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.default
More file actions
111 lines (97 loc) · 5.02 KB
/
.env.default
File metadata and controls
111 lines (97 loc) · 5.02 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# ============================================================================
# Managed Runtime Deployment Configuration
# ============================================================================
# Project slug - the unique identifier for your project on Managed Runtime
# If not set, defaults to package.json name
MRT_PROJECT=my-project-slug
# Deploy target environment (e.g., production, staging, development)
# If not set, deployment will upload without deploying to a specific target
MRT_TARGET=development
# ============================================================================
# Application Configuration
# All PUBLIC__ prefixed variables are automatically merged into config.server.ts
# Use double underscore (__) to target nested config paths
# See src/config/README.md for complete documentation
# ============================================================================
# ============================================================================
# Commerce Cloud API Configuration (REQUIRED)
# ============================================================================
PUBLIC__app__commerce__api__clientId=c9c45bfd-0ed3-4aa2-9971-40f88962b836
PUBLIC__app__commerce__api__organizationId=f_ecom_zzrf_001
PUBLIC__app__commerce__api__siteId=RefArchGlobal
PUBLIC__app__commerce__api__shortCode=kv7kzm78
# Optional API settings
PUBLIC__app__commerce__api__proxy=/mobify/proxy/api
PUBLIC__app__commerce__api__callback=/callback
PUBLIC__app__commerce__api__privateKeyEnabled=false
# ============================================================================
# SLAS Client Secret (Server-only - NEVER use PUBLIC__ prefix for secrets!)
# ============================================================================
# Read directly from process.env in server-side code (loaders/actions/middleware)
# COMMERCE_API_SLAS_SECRET=your-secret-here
# ============================================================================
# Site/Multi sites Configuration
# ============================================================================
PUBLIC__app__defaultSiteId=RefArchGlobal
PUBLIC__app__commerce__sites='[
{
"id": "RefArchGlobal",
"defaultLocale": "en-US",
"defaultCurrency": "USD",
"supportedLocales": [
{"id": "en-US", "preferredCurrency": "USD"},
{"id": "da-DK", "preferredCurrency": "EUR"},
{"id": "de-DE", "preferredCurrency": "EUR"},
{"id": "en-GB", "preferredCurrency": "GBP"},
{"id": "es-MX", "preferredCurrency": "USD"},
{"id": "fi-FI", "preferredCurrency": "EUR"},
{"id": "fr-FR", "preferredCurrency": "EUR"},
{"id": "it-IT", "preferredCurrency": "EUR"},
{"id": "ja-JP", "preferredCurrency": "JPY"},
{"id": "ko-KR", "preferredCurrency": "KRW"},
{"id": "nl-NL", "preferredCurrency": "EUR"},
{"id": "no-NO", "preferredCurrency": "EUR"},
{"id": "pl-PL", "preferredCurrency": "EUR"},
{"id": "pt-BR", "preferredCurrency": "BRL"},
{"id": "sv-SE", "preferredCurrency": "EUR"},
{"id": "zh-CN", "preferredCurrency": "CNY"},
{"id": "zh-TW", "preferredCurrency": "TWD"}
],
"supportedCurrencies": ["EUR", "USD"]
}
]'
# ============================================================================
# Hybrid Flags
# ============================================================================
PUBLIC__app__hybrid__enabled=false
# ============================================================================
# Feature Flags
# ============================================================================
PUBLIC__app__features__passwordlessLogin__enabled=false
PUBLIC__app__features__socialLogin__enabled=true
PUBLIC__app__features__socialLogin__callbackUri=/social-callback
PUBLIC__app__features__socialLogin__providers=["Apple","Google"]
PUBLIC__app__features__shopperContext__enabled=false
# ============================================================================
# Optional Configuration
# ============================================================================
# Cookie Configuration
# Domain for all application cookies
# If not set, cookies will use browser default (current domain)
# Example: .example.com (allows cookies across subdomains)
# PUBLIC__app__site__cookies__domain=
# Refresh Token Expiry (seconds)
# If not set, uses the expiry time from Commerce Cloud API response
# Guest user (default: ~30 days = 2592000 seconds)
# PUBLIC__app__commerce__api__guestRefreshTokenExpirySeconds=2592000
# Registered user (default: ~90 days = 7776000 seconds)
# PUBLIC__app__commerce__api__registeredRefreshTokenExpirySeconds=7776000
# Google Cloud API Key (for Google Address Autocomplete)
# PUBLIC__app__features__googleCloudAPI__apiKey=
# ============================================================================
# JSON Configuration Example
# ============================================================================
# You can store complex values by encoding JSON into a string.
#
# Example: Override multiple cart configuration values at once
# PUBLIC__app__pages__cart='{"quantityUpdateDebounce":1000,"maxQuantityPerItem":500,"enableSaveForLater":true}'