Skip to content

Commit fcb5d38

Browse files
committed
docs update
1 parent 13e650a commit fcb5d38

1 file changed

Lines changed: 27 additions & 5 deletions

File tree

docs/guide/storefront-next.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ b2c mrt env var set \
107107
PUBLIC__app__commerce__api__proxy=/mobify/proxy/api \
108108
PUBLIC__app__commerce__api__callback=/callback \
109109
PUBLIC__app__commerce__api__privateKeyEnabled=true \
110-
COMMERCE_API_SLAS_SECRET=<SLAS_CLIENT_SECRET> \
111110
PUBLIC__app__defaultSiteId=<SITE_ID> \
111+
PUBLIC__app__i18n__fallbackLng="en-US" \
112+
PUBLIC__app__i18n__supportedLngs='["en-US"]' \
113+
PUBLIC__app__commerce__sites='[{"id": "<SITE_ID>", "defaultLocale": "en-US", "defaultCurrency": "USD", "supportedLocales": [{"id": "en-US", "preferredCurrency": "USD"}], "supportedCurrencies": ["USD"]}]' \
114+
COMMERCE_API_SLAS_SECRET=<SLAS_CLIENT_SECRET> \
112115
-p <PROJECT> -e <ENVIRONMENT>
113116
```
114117

@@ -123,18 +126,37 @@ b2c mrt env var set \
123126
| `PUBLIC__app__commerce__api__proxy` | Proxy path for API requests |
124127
| `PUBLIC__app__commerce__api__callback` | OAuth callback path |
125128
| `PUBLIC__app__commerce__api__privateKeyEnabled` | Must be `true` for private SLAS clients |
126-
| `COMMERCE_API_SLAS_SECRET` | SLAS client secret from Step 2 |
127129
| `PUBLIC__app__defaultSiteId` | Default site ID for the storefront |
130+
| `PUBLIC__app__i18n__fallbackLng` | Fallback locale (e.g., `en-US`) |
131+
| `PUBLIC__app__i18n__supportedLngs` | JSON array of supported locales (e.g., `["en-US"]`) |
132+
| `PUBLIC__app__commerce__sites` | JSON array of site configurations (see below) |
133+
| `COMMERCE_API_SLAS_SECRET` | SLAS client secret from Step 2 |
128134

129135
Most of these values match what's in your project's `.env` file. The `privateKeyEnabled` variable must be set to `true` when using a private SLAS client.
130136

131137
::: warning
132138
The `COMMERCE_API_SLAS_SECRET` contains sensitive credentials. Treat it accordingly and avoid committing it to source control.
133139
:::
134140

135-
::: tip
136-
If your project uses multiple sites, you can also set `PUBLIC__app__commerce__sites` with your sites configuration.
137-
:::
141+
### Multi-Site Configuration
142+
143+
The `PUBLIC__app__commerce__sites` variable defines the sites, locales, and currencies for your storefront. Each site entry includes:
144+
145+
```json
146+
[
147+
{
148+
"id": "SiteID",
149+
"defaultLocale": "en-US",
150+
"defaultCurrency": "USD",
151+
"supportedLocales": [
152+
{ "id": "en-US", "preferredCurrency": "USD" }
153+
],
154+
"supportedCurrencies": ["USD"]
155+
}
156+
]
157+
```
158+
159+
Add additional objects to the array for multi-site setups.
138160

139161
## Step 5: Deploy
140162

0 commit comments

Comments
 (0)