Starter kit for high-performance commerce with Salesforce Commerce Cloud and Next.js.
A high-perfomance, server-rendered Next.js App Router ecommerce application.
This template uses React Server Components, Server Actions, Suspense, useOptimistic, use cache and more.
This version of Next.js Commerce is integrated with Salesforce Commerce Cloud. The integration code for Salesforce Commerce Cloud can be found in the lib/sfcc directory.
For information on other commerce providers, additional details, and the core Next.js Commerce template, please refer to the official Next.js Commerce repository.
This project requires the following environment variables for connecting to Salesforce Commerce Cloud:
SFCC_ORGANIZATIONID=""SFCC_SHORTCODE=""SFCC_SITEID="RefArch"SFCC_CLIENT_ID=""SFCC_SECRET=""SITE_NAME="ACME Store"SFCC_REVALIDATION_SECRET=""
Please refer to the official Salesforce Commerce API documentation for details on how to retrieve these values:
This project works with a standard Salesforce Commerce Cloud RefArch site with minimal modifications. However, for the homepage to display content correctly, two product categories must be created:
Create these two categories and assign products to them within Business Manager.
You will need to use the environment variables defined in .env.example to run Next.js Commerce. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.
Note: You should not commit your .env file or it will expose secrets that will allow others to control your Salesforce Commerce Cloud store.
pnpm installpnpm dev
Your app should now be running on localhost:3000.
Starter kit for high-performance commerce with Salesforce Commerce Cloud and Next.js.
A high-perfomance, server-rendered Next.js App Router ecommerce application.
This template uses React Server Components, Server Actions, Suspense, useOptimistic, use cache and more.
This version of Next.js Commerce is integrated with Salesforce Commerce Cloud. The integration code for Salesforce Commerce Cloud can be found in the lib/sfcc directory.
For information on other commerce providers, additional details, and the core Next.js Commerce template, please refer to the official Next.js Commerce repository.
This project requires the following environment variables for connecting to Salesforce Commerce Cloud:
SFCC_ORGANIZATIONID=""SFCC_SHORTCODE=""SFCC_SITEID="RefArch"SFCC_CLIENT_ID=""SFCC_SECRET=""SITE_NAME="ACME Store"SFCC_REVALIDATION_SECRET=""
Please refer to the official Salesforce Commerce API documentation for details on how to retrieve these values:
This project works with a standard Salesforce Commerce Cloud RefArch site with minimal modifications. However, for the homepage to display content correctly, two product categories must be created:
Create these two categories and assign products to them within Business Manager.
You will need to use the environment variables defined in .env.example to run Next.js Commerce. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.
Note: You should not commit your .env file or it will expose secrets that will allow others to control your Salesforce Commerce Cloud store.
pnpm installpnpm dev
Your app should now be running on localhost:3000.