Catalyst version 1.11.0 release notes
Catalyst 1.11.0 moves merchant-configured locale subfolders from build time to runtime, renders wallet payment buttons on the cart page, and fixes a set of session, consent, and caching issues. The locale change removes i18n/locales.ts and makes redirect and permanentRedirect async, so read the migration steps before upgrading. For a full list of Catalyst changes, see the changeset on GitHub.
Locale subfolders resolve at runtime
Catalyst now reads merchant-configured locale subfolders from BigCommerce at runtime instead of baking them into build-config.json during next build.
Previously, if the control panel returned incomplete locale data at build time, every localized URL returned a 404 until the next deploy. next-intl treats a custom subfolder as a replacement for the bare locale code rather than an alias, so there was no fallback: a path such as /es-es simply did not match any route.
- Runtime locale configuration — the new
i18n/locale-config.tsreads locale configuration from BigCommerce and caches it in KV with the same stale-while-revalidate pattern asproxies/with-routes.ts. An empty locale list is never cached. - Locales are no longer written to
build-config.json— runtime is the only source. A warm cache rides out a BigCommerce outage. Only a cold cache combined with an unreachable API cannot resolve, and that case returns503withretry-afterrather than a 404 that would tell crawlers the pages are gone. - One resolution per request —
proxies/with-intl.tsbuilds its next-intl middleware per request, resolves the configuration once, and forwards it to the render asx-bc-locale-routing. Rendering and redirects reuse exactly what resolved the inbound URL, so the two can’t disagree and there is no extra round trip. The matched subfolder is passed asx-bc-locale-prefix, whichproxies/with-routes.tsstrips instead of recomputing. - Client navigation agrees with the proxy —
Link,useRouter, andusePathnameread the runtime configuration through a new provider inapp/[locale]/layout.tsx. Canonical and hreflang URLs inlib/seo/canonical.tsand the header locale switcher do the same. generateStaticParamsremoved fromapp/[locale]/layout.tsx— it only added a build-time dependency on the locale list. Every route under[locale]already renders on demand because the tree reads cookies, and the build’s route rendering modes are unchanged.
Locale detection itself is unchanged. A shopper is still redirected to their language’s subfolder, and an explicit choice in the locale switcher still wins on later requests.
Migration
redirectandpermanentRedirectmoved and are now async — import them from~/i18n/navigation-serverinstead of~/i18n/routing, andawaitthem. This keeps the GraphQL client and KV out of the client bundle.i18n/locales.tsis removed — the locale gates ini18n/request.tsandapp/[locale]/layout.tsxnow use the runtime list. The sitemap, robots, and favicon routes resolve the default channel directly instead of routing through a locale.
Channel-per-locale stores see a behavior change: robots.txt, the sitemap index, and the favicon now resolve the default channel directly rather than through the default locale, because they run outside the proxy and have no request locale. Stores that map their default locale to a non-default channel in channels.config.ts will see those three served from BIGCOMMERCE_CHANNEL_ID.
Fixed along the way
/xmlsitemap.phpand/adminredirected through the locale-aware helper, resolving to/<locale>/sitemap.xmland/<locale>/whenever every locale carried a prefix. The sitemap target was a 404, since/sitemap.xmlis excluded from the proxy. Both now use plain redirects, and/adminno longer performs an uncached GraphQL request on every hit to a route that is disabled by default.- Losing the KV cache no longer takes the storefront down. A read failure degrades to a fetch instead of being treated as unresolvable.
- Locale configuration is validated where it is fetched, so an unusable value can no longer be cached and then rejected on every read. Subfolders are normalized (surrounding slashes and whitespace trimmed), and locale codes and prefixes are constrained to safe URL shapes.
- An unrecognized locale returns 404 rather than 500 when no message file exists for it.
- A locale whose configured subfolder cannot be expressed in a URL is skipped individually, with an error logged, instead of making the whole configuration unusable.
- The Playwright URL fixtures asserted
/<locale-code>/...instead of the configured subfolder, so alternate-locale assertions were wrong for any store whose subfolder differs from its locale code (for example,deserved at/de-de). They now resolve the subfolder from the store.
Wallet payment buttons on the cart page
Catalyst now renders wallet payment buttons, such as PayPal, on the cart page when payment wallets are configured for the cart.
- New cart queries —
getPaymentWallets,getPaymentWalletWithInitializationData, andgetCurrencyDatain the cart’spage-data.tsfetch the configured wallets, their initialization data, and currency formatting details. ClientWalletButtons(core/components/wallet-buttons) streams wallet initialization options and renders a container per wallet button.WalletButtonsInitializer(core/lib/wallet-buttons) lazily injects the BigCommerce Checkout SDK loader script and initializes each wallet button against the/graphqlendpoint, raising anInitializationErrorwhen the loader is missing.- GraphQL proxy support —
with-graphql-proxy.tsandproxy.tsnow handle Checkout SDK wallet-button requests. NEXT_PUBLIC_CHECKOUT_SDK_DEV_URLwas added to.env.exampleto optionally override the Checkout SDK loader URL in development.
End-to-end coverage in wallet-buttons.spec.ts verifies that the loader script and wallet button containers render only when wallets are configured.
Storefront fixes and improvements
-
Available-to-sell quantity on the PDP — the PDP now shows an error message and disables Add to Cart when the requested quantity exceeds available-to-sell (on-hand plus backorder allowance).
-
Cart “ready to ship” message — this message now appears only when part of the line item is also backordered. Previously it appeared whenever
showQuantityOnHandwas enabled and any quantity was on hand, even for fully in-stock items where it added no useful information. -
Cookies on stores with consent disabled — c15t grants every consent category client-side when consent is disabled, but only in its in-memory store, so no consent cookie was written and server-side checks treated the shopper as having declined. Server-side consent checks now fall back to the store’s cookie-consent setting when no consent cookie is present, so the analytics proxy starts visits on the first request and the selected currency persists.
-
Session cookie deletion after logout —
stripSessionCookieExpirystrippedExpiresfrom all session tokenSet-Cookieheaders, including deletion directives, turning cookie deletions into permanent empty-value session cookies that accumulated across login/logout cycles. Deletion directives are now left intact. -
Product
og:image—ProductPageMetadataQueryrequestedurlTemplate, which returns a URL containing a literal{:size}placeholder that the<Image>CDN loader substitutes at render time.generateMetadatahas no such loader, so the placeholder was emitted verbatim into the Open Graph tag.In
core/app/[locale]/(default)/product/[slug]/page-data.ts, update thedefaultImageselection to request a concrete URL:width: 1200matches the Open Graph andsummary_large_imagerecommendation. Height is omitted intentionally, because the Stencil resizer fits the image inside the given box rather than cropping it. -
State/Province on registration — Account Registration validated State/Province as required for countries that have no states, such as Algeria. The register page now queries per-country state data from BigCommerce and hides the field entirely when the selected country has no states.
-
In-memory KV expiry — entries in the per-process
MemoryKvAdapterthat sits in front of the shared adapter (Cloudflare KV, Upstash, or Vercel Runtime Cache) now expire after 60 seconds. They previously never expired, so once a process had seen a key it stopped consulting the shared store for it and refetched from the origin on its own clock rather than picking up a value another process had already shared. Cached data was never wrong, but origin requests and cache writes scaled with process count. Capacity also increases from 500 to 4096 entries, since cache keys include the query string and accumulate faster than the number of real paths suggests. -
Translations — static translations have been updated.
Release tags
- @bigcommerce/catalyst-core@1.11.0
- @bigcommerce/catalyst-client@1.0.3
- @bigcommerce/create-catalyst@2.0.4
Latest stable: