Skip to main content

Install JSS for Next.js

Abstract

How to install JSS for Next.js in an existing Next.js application

You can install the Sitecore JavaScript Rendering SDK (JSS) for Next.js in an existing Next.js project.

Important

We do not recommend that you use this methodology to create a Next.js JSS app. These instructions are general and do not cover aspects of configuration and usage.

Instead, we strongly recommend you use this library as part of the Next.js sample application.

To install JSS for Next.js in an existing Next.js project:

  • In a terminal, in the root of your Next.js app run the following command:

    npm install @sitecore-jss/sitecore-jss @sitecore-jss/sitecore-jss-nextjs