Skip to content

Commit

Permalink
Generated project with extensions will work immediately (#2231)
Browse files Browse the repository at this point in the history
Because the extensions' default config files no longer have any placeholders for now.
  • Loading branch information
vmarta authored Jan 31, 2025
1 parent 144759b commit 7a3644f
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 27 deletions.
26 changes: 15 additions & 11 deletions packages/extension-chakra-store-locator/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,28 @@
"radius": 100,
"radiusUnit": "km",
"defaultPageSize": 10,
"defaultCountry": "<COUNTRY>",
"defaultCountryCode": "<COUNTRY_CODE>",
"defaultPostalCode": "<POSTAL_CODE>",
"defaultPostalCode": "10178",
"defaultCountry": "Germany",
"defaultCountryCode": "DE",
"supportedCountries": [
{
"countryName": "<COUNTRY>",
"countryCode": "<COUNTRY_CODE>"
"countryCode": "US",
"countryName": "United States"
},
{
"countryCode": "DE",
"countryName": "Germany"
}
],
"commerceApi": {
"proxyPath": "/mobify/proxy/api",
"parameters": {
"shortCode": "<SHORT_CODE>",
"clientId": "<CLIENT_ID>",
"organizationId": "<ORGANIZATION_ID>",
"siteId": "<SITE_ID>",
"locale": "<LOCALE>",
"currency": "<CURRENCY>"
"shortCode": "8o7m175y",
"clientId": "c9c45bfd-0ed3-4aa2-9971-40f88962b836",
"organizationId": "f_ecom_zzrf_001",
"siteId": "RefArchGlobal",
"locale": "en-GB",
"currency": "USD"
}
}
}
89 changes: 73 additions & 16 deletions packages/extension-chakra-storefront/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"commerceAPI": {
"proxyPath": "/mobify/proxy/api",
"parameters": {
"clientId": "<CLIENT_ID>",
"organizationId": "<ORGANIZATION_ID>",
"shortCode": "<SHORT_CODE>",
"siteId": "<SITE_ID>"
"clientId": "c9c45bfd-0ed3-4aa2-9971-40f88962b836",
"organizationId": "f_ecom_zzrf_001",
"shortCode": "8o7m175y",
"siteId": "RefArchGlobal"
}
},
"defaultSite": "<SITE_ID>",
"defaultAppLocale": "<DEFAULT_APP_LOCALE>",
"defaultSiteTitle": "<DEFAULT_SITE_TITLE>",
"defaultSite": "RefArchGlobal",
"defaultAppLocale": "en-US",
"defaultSiteTitle": "Retail React App",
"einsteinAPI": {
"host": "https://api.cquotient.com",
"einsteinId": "<EINSTEIN_ID>",
"siteId": "<EINSTEIN_SITE_ID>",
"einsteinId": "1ea06c6e-c936-4324-bcf0-fada93f83bb1",
"siteId": "aaij-MobileFirst",
"isProduction": false
},
"maxCacheAge": 900,
Expand Down Expand Up @@ -76,21 +76,78 @@
"recentSearchLimit": 5,
"recentSearchMinLength": 3
},
"siteAliases": {},
"siteAliases": {
"RefArch": "us",
"RefArchGlobal": "global"
},
"sites": [
{
"id": "<SITE_ID>",
"id": "RefArch",
"l10n": {
"defaultCurrency": "<CURRENCY>",
"defaultLocale": "<LOCALE>",
"supportedCurrencies": ["<CURRENCY>"],
"supportedCurrencies": ["USD"],
"defaultCurrency": "USD",
"defaultLocale": "en-US",
"supportedLocales": [
{
"id": "<LOCALE>",
"preferredCurrency": "<CURRENCY>"
"id": "en-US",
"preferredCurrency": "USD"
},
{
"id": "en-CA",
"preferredCurrency": "USD"
}
]
}
},
{
"id": "RefArchGlobal",
"l10n": {
"supportedCurrencies": ["GBP", "EUR", "CNY", "JPY"],
"defaultCurrency": "GBP",
"supportedLocales": [
{
"id": "de-DE",
"preferredCurrency": "EUR"
},
{
"id": "en-GB",
"preferredCurrency": "GBP"
},
{
"id": "es-MX",
"preferredCurrency": "MXN"
},
{
"id": "fr-FR",
"preferredCurrency": "EUR"
},
{
"id": "it-IT",
"preferredCurrency": "EUR"
},
{
"id": "ja-JP",
"preferredCurrency": "JPY"
},
{
"id": "ko-KR",
"preferredCurrency": "KRW"
},
{
"id": "pt-BR",
"preferredCurrency": "BRL"
},
{
"id": "zh-CN",
"preferredCurrency": "CNY"
},
{
"id": "zh-TW",
"preferredCurrency": "TWD"
}
],
"defaultLocale": "en-GB"
}
}
],
"staleWhileRevalidate": 900,
Expand Down

0 comments on commit 7a3644f

Please sign in to comment.