You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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 |
128
134
129
135
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.
130
136
131
137
::: warning
132
138
The `COMMERCE_API_SLAS_SECRET` contains sensitive credentials. Treat it accordingly and avoid committing it to source control.
133
139
:::
134
140
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.
0 commit comments