Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Server-rendered Next.js App Router ecommerce starter integrated with Salesforce Commerce Cloud, using React Server Components and Server Actions.
Next.js Commerce + Salesforce Commerce Cloud is a server-rendered ecommerce starter template from Vercel that pairs the Next.js App Router with the Salesforce Commerce Cloud backend, producing a production-ready storefront with minimal configuration.
This is a high-performance, server-rendered ecommerce application built on the Next.js App Router. It takes a Salesforce Commerce Cloud instance as its backend and produces a full storefront with homepage carousel, featured products, and server-rendered pages. It is part of the official Next.js Commerce template family maintained by Vercel, with the Salesforce integration code isolated in the lib/sfcc directory.
useOptimistic hook.use cache directive for caching.lib/sfcc, using SLAS authentication (client ID/secret) and organization/site identifiers.SFCC_REVALIDATION_SECRET enables revalidation of cached pages.SITE_NAME and COMPANY_NAME environment variables set the storefront name and company info.Developers building headless commerce storefronts on Salesforce Commerce Cloud. Teams already using SFCC who want a modern React-based frontend. Vercel users who want to quickly prototype an ecommerce site with minimal setup.
hidden-homepage-carousel and hidden-homepage-featured-items) and assigning products.lib/sfcc to add custom SLAS-authenticated API calls.The template connects to a Salesforce Commerce Cloud site via SLAS client credentials and an organization/site ID. After deploying, create the two expected product categories in Business Manager, populate them, and the homepage renders the carousel and featured items from that data. Running locally involves pulling environment variables with vercel env pull, then pnpm install and pnpm dev.
The template needs SFCC_ORGANIZATIONID, SFCC_SHORTCODE, SFCC_SITEID, SFCC_CLIENT_ID, SFCC_SECRET, SITE_NAME, and SFCC_REVALIDATION_SECRET. The deploy button also collects COMPANY_NAME and NEXT_PUBLIC_VERCEL_URL.
No — you must create the hidden-homepage-carousel and hidden-homepage-featured-items categories in Business Manager and assign products to them before the homepage carousel and featured sections display correctly.
Install the Vercel CLI, link your local instance with vercel link, pull env vars with vercel env pull, then run pnpm install and pnpm dev. The app runs at localhost:3000.
It's a specialized version of Next.js Commerce pre-integrated with Salesforce Commerce Cloud. The core repository supports other commerce providers, and integration code for this provider is in lib/sfcc.
