Add-ons for Next.js applications
When you create a Next.js project with the JSS initializer script, you can include multiple add-ons in your application. Add-ons contain example implementations for additional functionality.
The add-ons available for Next.js that are compatible with XM Cloud are:
Name |
Template name |
Description |
---|---|---|
|
Includes an example for using XM Cloud Embedded Personalization. Only compatible with XM Cloud. | |
SXA |
|
Includes example components and the setup for Headless SXA projects. |
|
Includes example setup for hosting multiple sites from a single Next.js application. |
You provide the template names using positional arguments or the --templates
flag. For example:
npx create-sitecore-jss <base-template-name>,<first-add-on-template-name>,<second-add-on-template-name>
Or:
npx create-sitecore-jss --templates <base-template-name>,<first-add-on-template-name>,<second-add-on-template-name>