Repository navigation
Releases
FastStore Release Notes: Version `3.100.13`
FastStore v3.100.13 includes the changes released from v3.100.11 through v3.100.13. These updates raise the minimum Node.js version to 20.9.0 and fix how FastStore handles an empty api.subDomainPrefix configuration. See the sections below for details and upgrade instructions.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov3.100.13and keep your store up-to-date with the following improvements. Update@faststore/coreand@faststore/clito the same version.
Bug fixes
Node.js 20.9 or later is now required for the image processing security update (PR: #3569)
Starting with FastStore v3.100.11, @faststore/core includes an image processing security update that requires Node.js 20.9.0 or later.
Installing @faststore/core v3.100.11 or later with Node.js 18 fails with the following error:
The engine "node" is incompatible with this module. Expected version ">=20.9.0"Before upgrading, check that your build and local development environments meet this requirement:
- FastStore WebOps: Stores already building with Node.js
20.9.0or later require no Node.js configuration changes. - Legacy pipeline: Set nodeVersion:
20indiscovery.config.js. Use the number20, not the string'20'. This pipeline accepts only14,18, or20; setting22results in an "Unsupported Node version" error. - Local development: Update environments running Node.js
18to Node.js20.9.0or later.
Empty api.subDomainPrefix configuration respected to avoid duplicate Checkout cookies (PR: #3578)
FastStore now respects api.subDomainPrefix: [] in discovery.config.js, allowing Checkout cookies to use the configured storefront host consistently.
Previously, the configuration merge retained the default value, ['www'], even when an empty array was configured. As a result, FastStore stripped www. from the host sent to Checkout, which could cause duplicate Checkout cookies across the root domain and the www subdomain, increasing the Cookie header size.
With this fix, an empty array overrides the default. FastStore preserves www. in the host sent to Checkout, allowing Checkout cookies to be set on the www subdomain. Non-empty arrays continue to extend the default configuration. For example, ['shop'] results in ['www', 'shop'].
The next build and next dev commands also display a warning when api.subDomainPrefix is empty and secureSubdomain uses a different host, because Checkout cookies won't be sent to that host.
This change affects only stores configured with api.subDomainPrefix: []. Existing cookies on the root domain remain in the browser until they expire or are removed.
FastStore Release Notes: Version 4.10.2
FastStore v4.10.2 is a patch release with improvements for B2B Buyer Portal stores and CMS performance. B2B buyers see products allowed by their contract on product listing and product pages, and keep their selected contract after switching contracts or refreshing a token. The release also improves B2B buyer identification and reduces the number of repeated CMS calls during page generation. See the fixes below.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.10.2and keep your store up-to-date with the following improvements.
Bug fixes
Preview hosts no longer log out pasted sessions (PR: #3533)
With experimental.refreshToken on, pasting a VtexIdclientAutCookie_<account> into a WebOps preview made the first ValidateSession fail, the refresh call answered 405 because previews do not proxy VTEX ID, and /api/fs/logout deleted the pasted cookie. The refresh-token bypass that already existed for localhost now also covers hosts ending in .preview.vtex.app on both the browser and the server (via the Host and x-forwarded-host headers). {account}.vtex.app does not match, so the refresh flow continues.
Developers and QA teams can test logged-in areas in a WebOps preview by pasting the cookie, without editing IndexedDB or blocking /api/fs/logout. Production stores are unchanged.
B2B Buyer Portal (Closed beta)
B2B product listing pages respect the contract assortment (PR: #3516)
The first page of a product listing page (PLP) is generated at build time without buyer context, and the client reused that page whenever the query variables matched. Because the contract assortment (productClusterIds) is stored only in the vtex_segment cookie, a B2B buyer never reloads the first page. FastStore now adds a cache-only _contract key to the variables used for that comparison, so a B2B session always refetches page 1 with the buyer's cookie. The key is not part of any GraphQL operation, and the cache key for anonymous and B2C sessions is unchanged.
B2B buyers whose contract restricts the assortment to a collection see a grid that matches the result counter rather than products outside the contract. The statically generated HTML is still built without buyer context, so buyers may briefly see the unfiltered grid until the session resolves. No action is required beyond upgrading.
B2B product pages return a 404 for products outside the contract (PR: #3517)
The Intelligent Search products request used by the product detail page (PDP) never carried the contract productClusterIds, so a product outside the contract could still be opened with its price and Add to cart button. Query.product in @faststore/api now reads the allowed and excluded collections from the vtex_segment cookie and returns a NotFoundError when the product is not in the assortment. In @faststore/core, the new useProductNotFoundRedirect hook sends the shopper to the store's /404 page when the client refetch returns a 404, and the PDP keeps its loading state until the redirect happens. Intelligent Search failures, such as timeouts or 5xx errors, no longer look like a missing SKU and therefore no longer trigger the redirect.
Products outside a B2B contract are no longer reachable from their PDP. The redirect applies to every shopper whose vtex_segment excludes the product, and useProductQuery now settles with an error when the refetch fails, which customizations should account for. For regionalized stores with hideUnavailableItems, a product without stock in the shopper's region now returns /404, matching the listings. The redirect does not run when experimental.enableClientOffer is on. The product name and images can show briefly before the redirect, and the static HTML still contains the product.
B2B contract is kept across contract switch and token refresh (PR: #3525)
After a switch through /api/fs/switch-contract, the browser held two VtexIdclientAutCookie_<account> cookies with different contracts: VTEX ID's cookie with a Domain, and a host-only copy written by the switch. Core, @faststore/api, and checkout each picked a different one, which could leave the orderForm with an empty clientProfileData. The auth cookies are now written with the same scope VTEX ID uses (Domain=<request host>; Path=/; HttpOnly; Secure; SameSite=None), so they replace the existing cookie, and leftover host-only and parent-domain copies are expired. When checkout runs on a sibling host defined by secureSubdomain, the token is also written on their shared parent domain. WebOps previews, local hosts, and IP hosts keep a single host-only cookie, and /api/fs/logout expires the auth cookies on the shared parent.
B2B sessions now refresh the token via POST /api/authenticator/v1/refreshtoken/webstore, which preserves the contract claims (customerId, unitId), rather than the legacy /api/vtexid/refreshtoken/webstore route. Other sessions continue to use the legacy route. /api/fs/switch-contract also relays the vid_rt cookie, and /api/fs/logout expires it on every path where it can be scoped. B2B buyers keep the selected contract in checkout and after each refresh, and no longer need to log in again to recover it. No action is required beyond upgrading.
B2B buyers are identified by organizational unit and contract (PR: #3559)
FastStore used the isRepresentative claim in the VTEX ID token to decide whether a shopper is a B2B buyer, but Buyer Portal identifies one by the organizational unit (unitId) plus a contract (customerId). buildB2bSession now returns b2b only when both exist, validateSession and accountProfile follow the same rule, and getIsRepresentative in @faststore/core becomes getIsB2BBuyer. The isRepresentative claim is no longer read, and the isRepresentative props in the account and navigation components are renamed to isB2BBuyer.
B2B buyers who have a unit and a contract but no isRepresentative flag now get PLP refetch, contract switching, token refresh, and the Quotes and Cards pages in My Account. This is not a breaking change: StoreB2B.isRepresentative (GraphQL) and B2bInfo.isRepresentative (@faststore/sdk) are deprecated and still return true whenever b2b is set, so check that b2b is not null instead. OrganizationSignInButton_unstable accepts the new isB2BBuyer prop and keeps isRepresentative as a deprecated alias. The deprecated fields will be removed in the next major version.
Performance
Fewer CMS calls during page generation (PR: #3539)
FastStore now caches global section lookups and single-content reads across page generations for CMS and Headless CMS (legacy) stores, with in-flight deduplication and a 5-minute TTL per process. The new createPromiseCache helper does not cache failures, and fetches by hCMS documentId, versionId, or releaseId are cached only when the caller opts in. Previews and filtered listings, such as a landing page by slug, are not cached.
Build and cold page generation make far fewer CMS requests, reducing 502 and 504 bursts after a build on stores with many pages. A CMS publish still triggers a new build. Under next dev, each page has its own cache, so the effect appears under next start and in production. No action is required beyond upgrading.
FastStore Release Notes: Version 4.10.0
⚠️ Fixes included from FastStore 4.9.1 and 4.9.2: Version 4.10.0 includes the 4.9.1 fix that restores the original product release date format and the 4.9.2 fix for session and cart validation after region changes.
FastStore v4.10.0 lets merchants show images inside CMS rich text, and shoppers see pickup points that can fulfill orders for their location and sales channel. Anonymous visitors on stores that do not use sales channel 1 keep their catalog, and preview environments stop looping cart validation. See the fixes and features below.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.10.0and keep your store up-to-date with the following improvements.
Bug fixes
Anonymous shoppers no longer lose the catalog after a cart check (PR: #3509)
validateCart no longer treats the sales channel on an empty orderForm as authoritative. Checkout can answer with sales channel 1 when an orderForm that never had items is fetched without sc, and FastStore now refetches that cart with the session sales channel instead of adopting 1. An orderForm sales channel is adopted only when the cart has items. A sales channel that comes from the URL (localization) is always sent and is never overwritten. If Session Manager rejects an adopted sales channel for the shopper, the session retries once without that channel and does not adopt it again.
Anonymous shoppers on stores whose sales channel is not 1 keep seeing products on shelves, product listing pages, and product pages, instead of an empty catalog after a cart check. Merchants avoid a storefront that looks out of stock for visitors who have not added items. Quick Order still keeps the cart's sales channel while the cart has items. No configuration change is required beyond upgrading.
Cart testing works again in preview environments (PR: #3513)
On allowlisted hosts (*.vtex.app and localhost), the GraphQL API drops the Domain attribute from upstream Set-Cookie headers so the browser stores host-only cookies. A single x-forwarded-host value only decides whether that attribute is removed. The header value is never written into the cookie. Multi-value or malformed forwarded hosts are ignored, and the request falls back to the host header.
Developers and QA teams can use *.preview.vtex.app without validateCart creating a new orderForm on every request. That loop left preview sessions without a checkout cookie and blocked cart testing. Production stores on custom domains are unchanged, and a client-supplied x-forwarded-host can no longer choose the cookie scope.
Features
Add images to CMS rich text (PR: #3448)
RichText now understands a Lexical image node with src, altText, alignment (left, center, or right), and a width up to 100%. It renders a lazy-loaded image inside [data-fs-rich-text-image-wrapper]. VTEX asset URLs receive width and quality parameters, and a node without src is skipped. RichText is exported from @faststore/core. The starter Newsletter and Banner Newsletter privacy-policy fields use the draftjs-rich-text-v2 CMS widget.
Merchants can insert, align, and resize images in CMS rich text, including newsletter privacy copy, and shoppers see those images in the storefront instead of missing blocks. Developers rendering that content should use RichText from @faststore/core. After upgrading, sync the CMS schema so the newsletter privacy fields pick up the v2 widget.
Pickup points now match the shopper’s location and channel (PR: #3515)
The pickupPoints query lists points from Intelligent Search pickup-point-availability instead of the logistics shipping search. New optional arguments are postalCode, country, and channel (the same channel JSON string used by search facets). When channel is set, Intelligent Search uses that sales channel instead of the store default. Delivery hashes are sent only when the requested postal code matches the segment; coordinates can locate points when there is no postal code. pickupPointsHash is deprecated and always null, and the query cache scope is private. The pickup slider refetches when the shopper channel or country changes, ignores a late response for a previous location, and retries after a failed request.
Shoppers using Delivery Promise see pickup points that have products for their postal code and sales channel, including localized and B2B channels, instead of points from another channel or a previous location. Merchants get a slider that matches what the shopper can collect. Developers calling pickupPoints can pass postalCode, country, and channel, and should not rely on pickupPointsHash.
FastStore Release Notes: Version 4.9.0
⚠️ Updates in FastStore 4.9.1 and 4.9.2: Version 4.9.1 restores the original format ofStoreProduct.releaseDatein the GraphQL API and applies ISO 8601 normalization only to the product page’s JSON-LD structured data. Version 4.9.2 fixes session and cart validation. See the 4.9.1 release notes and 4.9.2 release notes for details.
FastStore v4.9.0 keeps cart services and My Account for B2B Buyer Portal sessions consistent, gives merchants more control over localized account content, and corrects localized storefront URLs. Developers gain more reliable builds, especially on Windows, plus new APIs for custom sorting and product cluster data. See the fixes and features below for details.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.9.0and keep your store up to date with the following improvements.
Bug Fixes
Prevent caching of GraphQL error responses (PR: #3485)
FastStore now applies cache-control: no-store to GraphQL and unexpected-error responses unless headers have already been sent. Successful GraphQL response caching remains unchanged.
Shoppers are less likely to receive a previously cached 404, 410, or other GraphQL failure from a CDN or intermediary. Merchants gain more reliable recovery after temporary API errors without additional configuration.
Quote resolved Next.js executable paths (PR: #3494)
Generated .faststore/package.json scripts now wrap resolved Next.js executable paths in double quotes. Paths containing unsafe quote, dollar, backtick, or percent characters fall back to the bare next command.
Developers can run generated build, serve, dev, and dev-only scripts when the Next.js binary resolves through directories containing spaces. The fallback also avoids generating malformed shell commands.
Preserve the search page on Yarn Classic for Windows (PR: #3486)
The search page moves from src/pages/s.tsx to src/pages/s/index.tsx, preserving the /s route while avoiding a Yarn Classic tar-extraction collision on Windows. The search SSR generator now targets the nested path.
Windows developers using Yarn Classic no longer lose the search page during installation or encounter the resulting Next.js type-check failure. Store URLs and shopper navigation remain unchanged.
Normalize storefront canonical URLs (PR: #3498)
FastStore now removes a trailing slash from locale-aware store URLs before appending landing-page, product, home-search, and search-page paths. Search SEO generation also receives the active router locale.
Shoppers and search engines receive valid canonical, Open Graph, breadcrumb, and search URLs without accidental double slashes. Localized stores get the correction automatically after upgrading.
Resolve custom GraphQL definitions in repositories ending with .faststore (PR: #3502)
The CLI now resolves the store root by folder name instead of treating any path ending in .faststore as the generated directory. Custom type definitions are consequently loaded from the correct src/graphql location, including when paths have trailing separators.
Developers whose repository names end with .faststore can build without custom GraphQL fields disappearing from the generated schema. No project rename or path workaround is required.
Guard direct package script generation from unsafe paths (PR: #3503)
The unsafe-character check for resolved Next.js paths now runs inside the package script builder. Direct callers that pass paths containing quote, dollar, backtick, or percent characters receive bare next scripts.
Developers are protected from malformed or shell-expanded generated commands even when code bypasses the normal path resolver. No action is required beyond upgrading.
Keep VTEX services attached to the correct cart line (PR: #3504)
Cart validation now represents Checkout bundleItems as service properties and includes applied services in cart-line identity and relevant ETags. Serviced and unserviced units remain separate, and available offerings are not sent back to Checkout as selected services.
Shoppers keep services attached to the intended item through validation, quantity changes, reloads, and removals. Merchants avoid duplicated or dropped services and the resulting incorrect cart state.
Features
Support custom search sort values (PR: #3496)
FastStore adds the optional APIOptions.customSortMap configuration and the SDK's registerCustomSortKeys export. Custom keys are resolved before built-in sort values, and unknown resolver values return a bad-request error.
Developers can connect custom Intelligent Search sorting to StoreSort and support matching deep-linked URLs without forking FastStore. Register the same keys in the API map and SDK URL parser when opting into custom sorting.
Expose product clusters on product groups (PR: #3499)
The GraphQL schema now includes the non-null StoreProductCluster type and a productClusters list on StoreProductGroup. The resolver returns Intelligent Search cluster IDs and names, or an empty list when none are available.
Developers can query a product's collections or clusters directly with its product-group data instead of adding a custom API extension or separate request. Storefronts can use this data for collection-aware merchandising and presentation after adding the field to their queries.
My Account for B2B Buyer Portal (Closed beta)
Reset cart and session state when switching B2B contracts (PR: #3479)
Contract switching now runs through /api/fs/switch-contract, sets the new authentication cookie, expires checkout ownership cookies, and clears persisted session and cart state. FastStore also identifies the default contract and keeps the account skeleton visible until session validation finishes.
B2B shoppers no longer carry a previous contract's cart into a new context or briefly see an incorrect sign-in state. Merchants gain clearer active and default contract information with no additional configuration required.
Localize My Account for B2B Buyer Portal order content (PR: #3490)
My Account now exposes CMS fields for order filters, statuses, timelines, delivery details, totals, policy messages, and navigation labels. Dates follow the session locale, while delivery and total labels retain API or name fallbacks.
Merchants can replace hardcoded English and checkout-language strings with localized order content, giving shoppers a more consistent account experience. Regenerate and upload the My Account content schemas to make the new fields available in the CMS.
Localize My Account quotes and the contract switcher (PR: #3492)
FastStore replaces hardcoded Quotes and Contract Switcher text with CMS-resolvable labels, including quote statuses and filters. It also adds My Account Quotes to the CMS section and content-type pipeline.
Merchants can localize and customize quote management and contract selection, giving B2B shoppers consistent language throughout My Account. Regenerate and upload the My Account schemas to configure the new labels in the CMS.
FastStore Release Notes: Version 4.8.0
FastStore v4.8.0 helps merchants increase average order value with recommendations in the mini cart, provides developers with safer, faster ways to extend the BFF and run the CLI, and improves storefront stability under bot traffic and in multilingual SEO. Shoppers get a more polished My Account experience for B2B Buyer Portal Cards, and teams on Windows or in monorepos spend less time on opaque build failures. See the sections below for details.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.8.0and keep your store up to date with the following improvements.
Features
Mini cart recommendation shelf (PR: #3466)
Adds an optional CartRecommendationShelf inside the cart drawer, between cart line items and the order summary. Merchants configure the shelf on the Cart Sidebar CMS group with a display toggle (off by default), campaign VRN, title, carousel settings, and product-card options. The shelf reuses recommendation shelf patterns and hides when the cart is empty.
Merchants can promote complementary products at the moment shoppers are ready to buy, without custom storefront code. Shoppers discover relevant items without leaving checkout flow, which supports higher conversion and basket size. For more information, see the Displaying recommendations in the mini cart section.
Build safer custom BFF routes with VTEX ID authentication helpers (PR: #3481)
Exports two helpers that already exist in the BFF but were not part of the public package entry: validateUserAuthentication(ctx) (calls commerce.vtexid.validate() and throws UnauthorizedError / ForbiddenError on failure) and getAuthCookie(ctx) (reads the VTEX ID auth cookie from the request context).
Teams building custom BFF routes spend less time reimplementing VTEX ID checks and reduce the risk of auth bugs that expose data or block legitimate buyers. Extensions behave consistently with the platform BFF. Upgrade @faststore/api to v4.8.0 and import the helpers from @faststore/api in server-side extension code. For more information, see the Authentication in API extensions.
Bug Fixes
Stop forwarding unvalidated ni output to the shell in the CLI (PR: #3422)
Validates the stdout of ni package-manager detection in getPreferredPackageManager() before callers interpolate it into shell commands. Previously, unexpected output could produce opaque /bin/sh: syntax error failures during faststore commands with no log context tying the error to package-manager detection.
Developers and CI pipelines get clearer, faster resolution when builds fail—you are less likely to lose hours chasing a generic shell error unrelated to your store code. No configuration changes are required after upgrading to v4.8.0.
Resolve the next binary from @faststore/core (PR: #3454)
Introduces resolvePackageBin() so .faststore scripts invoke the next binary shipped with @faststore/core instead of whichever copy wins in a hoisted monorepo node_modules/.bin (for example, an older major that does not support next build --webpack).
Partners and merchants using monorepos can ship FastStore on the same repo layout as the rest of their stack without surprise next build failures, so releases stay on schedule. After upgrading to v4.8.0, rebuild your project.
Export Resolver, GraphqlContext, and helper types from the public @faststore/api entry (PR: #3474)
Re-exports GraphQL resolver typings (Resolver, GraphqlContext, and related VTEX platform types) from packages/api/src/index.ts so custom BFF resolvers type-check under strict without reaching into internal paths. Includes compatibility adjustments to keep the public Resolver type aligned with v3 expectations.
Teams get faster, safer development: IDE autocomplete, and compile-time checks catch resolver mistakes before production, and upgrades break fewer custom integrations. Import types from @faststore/api and remove fragile deep imports from internal modules.
Generate GraphQL types when the project path contains spaces (PR: #3476)
Quotes and escapes filesystem paths in the GraphQL code-generation step so faststore build, faststore dev, and faststore generate succeed when the store lives under directories with spaces (for example, My Store).
Any developer can clone a store into a normal user folder on Windows or macOS without being forced to rename paths or maintain a second copy of the project just to run the CLI.
Keep store Storybook stories and Jest mocks out of the .faststore type-check (PR: #3477)
Extends storefront copy rules so next build type-checking inside .faststore excludes store-level Storybook stories and Jest mock files.
Teams that document components in Storybook or use mocks beside production code can ship production builds without stripping dev-only files or fighting TypeScript errors unrelated to the live storefront.
Normalize outputFileTracingRoot to forward slashes on Windows (PR: #3484)
Converts process.cwd() to forward slashes before writing outputFileTracingRoot into the generated next.config.js, preventing JavaScript escape sequences (such as \f) from corrupting the config when paths contain backslashes on Windows.
Windows-based developers get parity with macOS/Linux—production builds complete reliably rather than failing on config parse errors unrelated to store business logic.
Keep Yarn 1 from hoisting an incompatible @inquirer/type into the CLI (PR: #3459)
Adjusts @faststore/cli dependencies and install behavior so Yarn 1 store installs do not hoist @inquirer/type@3 over @inquirer/core@9, which removed CancelablePromise and crashed builds after regenerating yarn.lock.
Yarn 1 stores regain predictable faststore dev and faststore build runs after lockfile updates, with fewer blocked local development sessions and failed deploys. Upgrade and reinstall dependencies if interactive CLI prompts previously crashed at build time.
Stop retrying upstream HTTP 429 responses in GraphQL client hooks (PR: #3453)
Updates onErrorRetry in the GraphQL SDK so client-side hooks never retry responses with status 429, while preserving SWR’s default retry behavior for other error statuses.
Stores see more stable performance when crawlers or bursts of traffic hit rate limits, fewer wasted API calls, less load on VTEX services, and a lower chance of degraded checkout or catalog pages for real shoppers.
Forward contentSource.project as --storeId in CMS cms-sync (PR: #3482)
Passes contentSource.project through to vtex content upload-schema as --storeId in the CMS cms-sync flow. Previously, the value was used only for the account preflight check, which required interactive toolbelt prompts during CI or headless runs.
Merchants automate CMS schema sync in CI and onboarding scripts without manual prompts, so content goes live faster, and human error from picking the wrong store ID drops. Confirm discovery.config defines the correct contentSource.project for your CMS workspace.
Localization feature (Closed beta)
Point localized canonical URLs and hreflang at the rendered locale (PR: #3470)
Fixes SSR localization URL resolution so getStoreURL() no longer infers locale from window.location during server render. Collection and listing templates receive binding-aware URLs, and PLPs emit hreflang alternates for localized routes.
Multilingual stores improve organic search signals—search engines index the correct locale URLs, and shoppers land on the right language version from SERPs and shared links. Merchants reduce duplicate content and wrong-locale ranking issues. After upgrading to v4.8.0, spot-check canonical and hreflang tags on a few localized PLPs and landing pages.
My Account for B2B Buyer Portal (Closed beta)
Align the saved-cards list with the design reference (PR: #3487)
Updates MyAccountListCards layout and styles so the Personal and Shared saved-card listings match design review for spacing, typography, and empty states introduced in v4.7.0.
B2B buyers see a clearer, more trustworthy payment experience when managing personal and shared cards—fewer layout surprises and empty states that look broken. No CMS or configuration changes beyond upgrading to v4.8.0.
FastStore Release Notes: Version 4.7.0
FastStore v4.7.0 lets buyers manage saved payment cards in My Account, improves how product recommendations start across the storefront, and fixes issues that caused broken redirects, incorrect SEO locale links, incomplete order pages, and invalid product markup in search results. See the sections below for more details.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.7.0and keep your store up-to-date with the following improvements.
Features
Recommendation session gated by discovery feature flag (PR: #3449)
Restores experimental.enableRecommendations in discovery.config so Layout can start the VTEX Recommendations personalization session on every page when the flag is enabled, without scanning CMS page data. When the flag is off (default), any mounted Recommendation Shelf starts the session as a fallback while userId is missing, in parallel with cookie retry. This release removes the CMS Enable recommendations? toggle from the Recommendation Shelf schema.
Stores get a clearer, store-wide way to turn recommendations on or off, and shelves can still load personalized products on the first visit without an extra CMS toggle per shelf. Stores that previously enabled the session through the CMS property should set experimental.enableRecommendations: true in discovery.config instead. With the flag off, mounting a Recommendation Shelf on a page is enough to trigger the fallback when no user id is available yet.
Bug Fixes
Correct item videos field casing in Search API types (PR: #3447)
Renames the Intelligent Search item field from Videos to videos in ProductSearchResult and keeps Videos as an optional deprecated alias for backward compatibility.
Custom integrations and storefront code that read product video URLs from Search results can rely on consistent, standard field naming. Prefer videos in new or updated code; the deprecated Videos field will be removed in a future major version. No action is required if your store does not consume video URLs from Search API types directly.
Separate hreflang slugs from locale-switch navigation (PR: #3462)
Introduces defaultLocaleSlug on StoreProduct for locale-selector navigation fallback and limits otherLocales hreflang entries to slugs registered in the catalog's availableLinkIds. Intelligent Search linkText is no longer reused as an hreflang alternate when a localized slug is missing.
Shoppers switching locales land on working product URLs instead of broken links, and search engines receive accurate hreflang annotations that do not point to pages that return 404. Stores with the Localization feature enabled should verify alternate-locale links and locale-selector behavior on PDP after upgrading.
Make PDP product JSON-LD Schema.org compliant (PR: #3465)
Normalizes StoreProduct.releaseDate to an ISO 8601 calendar date regardless of whether Intelligent Search returns epoch milliseconds, epoch seconds, or date strings. PDP JSON-LD now omits empty gtin, mpn, releaseDate, and offers fields instead of publishing blank values, and offer prices are formatted for Schema.org compliance.
Product pages send cleaner structured data to search engines, which can improve rich-result eligibility and reduce validation warnings in tools such as Google Search Console. Upgrade to v4.7.0 and rebuild; no store configuration changes are required.
Resolve redirect matcher module explicitly (PR: #3467)
Changes the local redirect matcher import to src/customizations/src/redirects/index so a store's src/redirects.json file cannot shadow the matcher function during bundling. When the exported matcher is not a function, FastStore logs a warning once and falls back to the platform redirect lookup instead of silently returning null and serving 404.
Shoppers reach the correct destination when Admin redirect rules apply, even if the store also keeps a src/redirects.json file as documented. Stores using both experimental.enableRedirects and src/redirects.json should upgrade to restore redirect behavior. Custom redirect overrides via src/redirects/index.ts continue to work as before.
My Account for B2B Buyer Portal
Gate Cards route and sidebar entry on organization membership (PR: #3463)
Adds the Cards route to ROUTES_ONLY_FOR_B2B_MEMBERS and redirects buyers without a unit or contract association to /pvt/account/404 before calling the Saved-cards service. The sidebar entry is hidden for shoppers with no organization association.
Buyers who can't use saved cards no longer see a Cards menu item or reach a page that returns an error or shows an empty, unusable tab. Organization members retain full access. useAdHocCard continues to control Personal-tab rendering only within the page. No configuration changes are required beyond upgrading to v4.7.0.
My Account for Buyer Portal B2B Cards — Personal and Shared listing (PR: #3443)
Adds a My Account Cards page at /pvt/account/cards with CMS-driven sections for listing personal and shared saved cards. The feature introduces GraphQL queries and resolvers for saved-card data, a MyAccountListCards component with Personal and Shared tabs, and CMS schemas for the new account page and list section.
Buyers with the required organization access can view and manage their saved payment cards in one place-personal cards and shared cards on separate tabs, without custom storefront code. After upgrading to v4.7.0, sync the My Account CMS schemas, publish the Cards content type and sections in the CMS via Admin, and ensure eligible buyers have the required B2B organization association. Review sidebar visibility and page gating together with PR #3463.
Restore Order Details layout and first-paint rendering in My Account (PR: #3464)
Adds a skipLazyLoading option to RenderSectionsBase for authenticated My Account pages so CMS sections render on first paint instead of behind lazy-loading placeholders. Order Details grid CSS now targets CMS section wrapper classes rather than nested card data attributes, and server-side props omit undefined orderStatusLabels so pages without CMS order-status content serialize correctly.
Buyers opening an order in My Account see the full order layout immediately—status, payment, delivery, and summary sections, in the correct grid, instead of placeholders or a broken two-column layout. Upgrade to v4.7.0; no CMS or theme changes are required.
FastStore Release Notes: Version 4.6.0
FastStore v4.6.0 keeps carts aligned after external checkout flows, hardens CLI behavior on Windows and in hoisted monorepos, and recovers PDP and PLP pages from stale ISR 404 caches. It also refactors the observability stack to use @faststore/diagnostics instead of @vtex/diagnostics-nodejs, extracts the recommendation data layer into a reusable SDK module, and adds Twitter Card meta tags for richer social previews. See the sections below for details.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.6.0and keep your store up-to-date with the following improvements.
Bug Fixes
Custom GraphQL typeDefs ignored on Windows (PR: #3419)
Custom GraphQL type definitions under src/graphql/**/typeDefs/*.graphql were silently dropped on Windows during CLI schema merge and codegen, so custom Query and Mutation extensions could be missing from the merged schema without a clear error.
The CLI now converts paths to glob-safe forward-slash patterns and expands **/*.graphql explicitly, including when parent directories contain glob-special characters such as parentheses. Custom extensions now behave the same on Windows, macOS, and Linux, so you can extend the GraphQL schema without platform-specific workarounds or hard-to-debug missing resolvers after codegen.
After upgrading to v4.6.0, re-run faststore dev or faststore build so custom extensions are included in the merged schema again.
Twitter Card meta tag for store pages (PR: #3425)
Links shared on Twitter/X previously rendered as plain text snippets because the default Next SEO configuration did not include a Twitter Card meta tag.
FastStore now adds twitter:card with value summary_large_image to the default SEO configuration. Product and content pages get richer social previews out of the box, without wiring Twitter-specific meta tags yourself or maintaining a custom SEO override for this tag alone.
No action is required beyond upgrading. Stores with custom SEO overrides should confirm their configuration does not remove the new Twitter Card tag.
Preserve orderForm sales channel in validateCart (PR: #3435)
After external checkout flows such as Quick Order, the browser session sales channel could lag behind the orderForm trade policy, causing cart validation to send a stale sc query parameter.
validateCart now omits a stale sc parameter on existing carts, adopts the orderForm sales channel into the session context, and exposes an optional salesChannel field on the mutation response so the client can align session.channel. Carts stay on the correct trade policy after external checkout flows, so you avoid pricing, availability, and checkout mismatches without building custom session-sync logic around validateCart.
No configuration changes are required; session synchronization happens automatically on the next cart validation.
ISR revalidation for transient notFound PDP and PLP paths (PR: #3436)
PDP, PLP, and slug pages that first resolved as notFound during a transient Search or stock miss could be cached indefinitely by Next.js ISR, leaving valid product and listing pages stuck as 404 until a full rebuild.
Affected paths now revalidate on a configurable interval (default five minutes) via experimental.revalidate404 in discovery.config.js. Transient catalog or stock misses no longer require manual redeploys, so you recover valid pages automatically during Search or inventory blips.
After upgrading to v4.6.0, adjust experimental.revalidate404 if your catalog needs a shorter or longer recovery window.
Resolve node_modules/.bin when running scripts inside .faststore (PR: #3440)
CLI commands that run scripts inside the generated .faststore directory could fail when that folder had no local node_modules, because binaries such as next were not found on PATH.
The CLI now prepends ancestor node_modules/.bin directories (nearest first) to PATH for dev, build, and test. faststore dev, build, and test work in hoisted monorepos and nested store layouts without symlink hacks or duplicate dependency installs in .faststore, so you can keep your preferred package-manager and repo structure.
Developers in hoisted monorepos should upgrade to v4.6.0. No configuration changes are required.
FastStore Release Notes: Version 4.5.0
FastStore v4.5.0 expands My Account for B2B Buyer Portal (closed beta) with a quotes list and contract switcher, adds CMS-configurable product recommendations and custom account pages, and improves multi-locale PDP and PLP URL resolution. It also forwards Intelligent Search Pricing Fallback tokens into Checkout and copies self-hosted fonts from public/ during CLI generation. See the sections below for more details.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.5.0and keep your store up-to-date with the following improvements.
Features
New RecommendationShelf native component (PRs: #3403 | #3414)
Adds a CMS-configurable RecommendationShelf section that fetches VTEX personalization recommendations for a campaign VRN and renders them with the shared core ProductCard. After upgrading to v4.5.0, add the Recommendation Shelf section in the CMS and on the desired page with a valid campaign VRN.
Copy fonts and nested assets from public/ folder to build (PR: #3412)
@faststore/cli copyPublicFiles previously dropped nested directories and mismatched extensions, so self-hosted fonts under public/fonts/ never reached the production build. Font formats (.woff, .woff2, .ttf, .otf, .eot) and nested directories are now copied correctly.
Stores that place fonts or nested assets in public/ should upgrade to v4.5.0 and re-run the build.
Forward Pricing Fallback price token to Checkout (PR: #3415)
When Intelligent Search emits a signed price token during a Pricing System incident, FastStore now forwards it through to Checkout so shelf prices can be trusted at add-to-cart. The field is optional: when Search omits it, behavior matches previous releases.
Accounts with the Intelligent Search Pricing Fallback flag enabled after upgrade to v4.5.0 should ensure the store Pricing Fallback flag is on for the account.
Localization feature (closed beta)
Localized product URLs and breadcrumbs on PDP and PLP (PR: #3402)
PDP and PLP slugs, breadcrumbs, and alternate-locale links now resolve correctly for multi-language catalogs.
Retiring pagetype on the collection path in favor of the typed by-linkid cascade changes two observable behaviors. Neither is a schema change (no query breaks), but both are worth calling out for stores that rely on them:
StoreCollection.typeno longer returnsClusterorSubCategory. Clusters and curated collections are both served bycollection/by-linkid, so clusters now report asCollection. The category response doesn't expose tree depth beyond root, so third-level categories now report asCategory. Both enum values remain declared for backward compatibility.- Slugs that exhaust the cascade now return
404instead of falling back to full-text search.pagetypeimplicitly promoted unmatched single-segment slugs to a full-text search; the new cascade returns a not-found error when category, brand, and collection resolution all miss.
Stores that branch on collection { type } or rely on the search fallback for unmatched slugs should review those paths after upgrading to v4.5.0.
My Account for B2B Buyer Portal (closed beta)
Quotes list for B2B buyers in My Account B2B Buyer Portal (PR: #3388)
B2B buyers with an organization unit can now open /pvt/account/quotes in My Account to review submitted quotes, with filtering (status and created/expiry date ranges), pagination, status badges, and navigation to order entry.
B2B contract switcher in the account drawer (PR: #3390)
B2B buyers can now view active contracts and switch between them for their Organization Unit directly from the FastStore account drawer. Confirming a switch refreshes the webstore token and reloads the page so commercial context resets. Local development may need authenticator/vtexid rewrites for non-WebOps environments.
Prevent My Account 500s from an empty session profile and missing CMS content (PR: #3417)
My Account routes could previously return error 500 when a representative session had an empty VTEX profile or when a My Account content type had no published CMS content. Both cases are now handled, including a fallback for /pvt/account/404.
CMS-driven custom My Account pages (PR: #3411)
Stores can now declare a My Account route bound to a CMS content type so new account pages are authored in CMS Admin instead of remaining code-only. An optional contentType on each Route in navigation.ts controls the mode: content type alone generates a CMS-only page; content type plus a .tsx page keeps a hybrid of CMS sections and code; omitting contentType preserves legacy code-only routes.
After upgrading to v4.5.0, add contentType on the desired route, sync CMS schemas, publish sections in Admin, and open the route while logged in. Existing routes without contentType are unchanged.
FastStore Release Notes: Version 4.4.0
FastStore v4.4.0 introduces CMS-backed pages for My Account for B2B Buyer Portal (Closed Beta), which now also supports the Localization feature (Closed Beta), an improved CMS sync flow, locale fixes for Intelligent Search, and versioned Authenticator API routes.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.4.0and keep your store up-to-date with the following updates.
Bug Fix
Versioned Authenticator routes for My Account B2B Buyer Portal (PR: #3398)
FastStore now uses versioned Authenticator API routes for password reset flows. The password reset and authentication start requests now include the v1 segment in the API path, following the expected Authenticator route format.
Stores using FastStore My Account password reset should upgrade to v4.4.0 to avoid issues when unversioned Authenticator paths are deprecated. No configuration changes are required, and no deprecation date has been set at this time.
Improvement
CMS aware cms-sync command (PR: #3406)
The faststore cms-sync command now supports stores using the CMS. Previously, these stores had to run schema generation and upload commands separately. Now, the command identifies the store's CMS setup and automatically runs the appropriate sync flow.
For stores using the CMS, the command includes schema generation and upload in the sync process. It also checks the VTEX CLI version and verifies the authenticated VTEX account before running schema generation.
Stores using the CMS should upgrade to v4.4.0 and run faststore cms-sync instead of separate schema commands. Stores using the Headless CMS (legacy) integration see no workflow change.
Localization feature (Closed Beta)
Sync Intelligent Search locale with URL on navigation (PR: #3405)
FastStore now keeps Intelligent Search queries aligned with the active URL locale during client-side navigation.
Previously, stores using the Localization feature (Closed Beta) could experience stale locale data after switching locales or using browser back and forward navigation. This could cause Product Listing Pages, search results, or shelves to display product information in the wrong locale.
With this update, FastStore derives the search locale from the active route and prioritizes the locale selected in the URL. This helps ensure product names and slugs update correctly after a locale switch.
Stores with localization.enabled should upgrade to v4.4.0 and verify that Product Listing Pages, search pages, and shelves are accessible under locale-prefixed URLs. No configuration changes are required.
CMS-backed My Account for B2B Buyer Portal pages (PR: #3354)
My Account for B2B Buyer Portal pages can now use CMS content. Previously, these pages relied on hardcoded English copy and could not be customized.
This update adds CMS content types and section schemas for My Account for B2B Buyer Portal pages, including profile, orders, order details, user details, security, and unauthorized access. If CMS content is available, My Account for B2B Buyer Portal pages render the published content. If CMS content is empty or unavailable, pages continue to render with default English content.
Merchants can use the CMS to localize labels, reorder sections, and customize order status badges. Stores with localization.enabled should upgrade to v4.4.0 and run the faststore cms-sync in the terminal.
i18n support for My Account for B2B Buyer Portal navigation (PR: #3400)
My Account for B2B Buyer Portal routes now preserve the active locale during navigation and server-side redirects.
Previously, private My Account routes could drop the locale prefix when users navigated between account pages or were redirected on the server side. For example, a user could be redirected from /pt-BR/pvt/account/orders to /pvt/account/orders.
With this update, My Account links, filters, pagination, order details, and server-side redirects preserve the active locale. Price and date formatting also follow the locale from the current route.
Stores with localization.enabled and path-based bindings should upgrade to v4.4.0 and verify My Account navigation, redirects, and formatting under locale-prefixed URLs.
FastStore Release Notes: Version 4.3.0
This release introduces storefront password protection and QuickOrder file upload through the VTEX Order Entry Service (OES), along with fixes for My Account authentication, password reset routing, and GraphQL BFF error status propagation. It also migrates Partytown to the maintained @qwik.dev package. See the sections below for details and upgrade notes.
⚠️ Follow the instructions in Updating the CLI package version to upgrade tov4.3.0and keep your store up-to-date with the following improvements.
Features
Password Protection (#3276)
FastStore now ships a password-protection flow for gated storefront access. The change adds middleware that validates a secure session cookie, a /api/fs/password-protection/unlock endpoint that verifies passwords and returns a safe redirect URL, and a login page for protected environments. WebOps settings continue to drive which domains require authentication. The CLI also removes localization-based proxy filename toggling from dev and build commands.
Merchants can restrict preview URLs and production domains to authorized users, reducing accidental public exposure during development and launch. Upgrade your store to v4.3.0 and configure password protection in FastStore WebOps to enable the storefront login flow.
File upload via Order Entry Service (OES) (#3334)
QuickOrder file upload now uses the VTEX Order Entry Service instead of a rigid CSV parser.
@faststore/apiadds GraphQL operations (uploadFileToOrderEntry,startOrderEntryOperation,orderEntryOperation,orderFormItems) and VTEX commerce client methods for the OES flow.@faststore/coreintroducesuseOrderEntryUpload,useOrderEntryOperation,useOrderFormItems, and the orchestration hookuseOrderEntry.@faststore/componentsadds aProcessingstate toFileUploadStatuswith a configurableprocessingStatusTextlabel.SearchInputis refactored to use the OES-backed flow end-to-end, and the legacyuseCSVParserhook anduseBulkProductsQueryare removed.
Stores using QuickOrder file upload can accept more file formats and benefit from server-side parsing with AI-assisted extraction. The UI flow remains upload → processing → drawer, but processing is now distinct from upload. No configuration changes are required beyond upgrading your store to v4.3.0 and republishing CMS content if you customize processingStatusText in the Navbar schema.
Bug Fixes
Propagate upstream error status instead of always 500 (#3379)
The GraphQL BFF at /api/graphql previously returned HTTP 500 for all errors because masked GraphQLError instances hid the nested FastStoreError that carries extensions.status. The handler now unwraps masked errors via recoverFastStoreError and returns the upstream status (for example, 400 for invalid shipping postalCode). Non-production responses include structured extensions.type and extensions.status; upstream messages are omitted in production.
API consumers and debugging workflows now receive accurate HTTP status codes instead of generic 500 responses. The storefront SDK still builds errors from response.status before reading the body. Upgrade your store to v4.3.0 and review any custom error handling that assumed all BFF failures were 500.
Order Entry header authentication fix (#3395)
After #3381 removed the withAutCookie helper, the Order Entry Service client methods introduced in #3334 still referenced the helper, breaking builds and file upload requests. The five orderEntry methods now use the same withCookie header pattern as other authenticated commerce calls, preserving multipart/form-data for file upload.
Stores using OES-backed QuickOrder file upload should upgrade to 4.3.0 together with #3334. No separate configuration is required.
Dependencies updates
Migrate Partytown to @qwik.dev (#3394)
@faststore/core replaces @builder.io/partytown@^0.6.1 with @qwik.dev/partytown@^0.14.0, following the official Partytown package relocation. Runtime behavior is unchanged: the CLI still runs partytown copylib at predev/prebuild and loads static assets from /~partytown/partytown.js.
After upgrading to v4.3.0, re-run faststore dev or faststore build so public/~partytown/ is regenerated. No store configuration changes are required.
My Account for B2B Buyer Portal (Closed Beta)
Forward auth token only via account-scoped cookie (PR: #3381)
Logged-in shoppers were redirected to /pvt/account/403 when accessing FastStore My Account because @auth-protected GraphQL queries forwarded the VTEX ID token twice—via the account-scoped cookie and a duplicated top-level header. The platform rejected the duplicate with 401 even for valid sessions. This PR standardizes authenticated VTEX requests on the account-scoped cookie pattern used elsewhere in @faststore/api.
Stores with experimental.enableFaststoreMyAccount enabled should regain access to My Account routes after upgrading. No configuration changes are required.
Use authenticator route for set password (#3380)
The My Account Reset password flow in useSetPassword now posts to /api/authenticator/pub/authentication/classic/setpassword instead of the deprecated /api/vtexid/pub/authentication/classic/setpassword endpoint. The account name is passed explicitly via the an query parameter, sourced from the hook argument with a fallback to config.api.storeId. The request method, credentials, form body, and success/error toast mapping remain unchanged.
Stores using FastStore My Account security settings should verify the password reset after upgrading. No configuration is required.