Uniform - Sitecore JSS - Next.js starter kit
January 29, 2025 ยท View on GitHub
This repo contains both the starter kit with content items and required configuration files.
You can also use this kit to start a vanilla project, simply remove everything from /src/components and adjust the Sitecore site name from uniform-jss-kit to whatever you want and get cracking.
Docs
Pre-requisites
- Sitecore 9.x-10.x instance available with Sitecore JSS installed and configured
- "Uniform for Sitecore" installed and configured on your Sitecore instance. Check out the docs.
- Install the Sitecore package with items from
/sitecore/App_Data/packagesfolder.
Getting started with the app
Check out official docs for more scenarios and tutorial.
TL;DR version
- Add
NPM_TOKENenvironment variable with the value we provided you with. - Add
JSS_EDITING_SECRETenvironment variable with the value from "JavaScriptServices.ViewEngine.Http.JssEditingSecret" setting. npm installjss setupand follow the steps Sitecore JSS requires and use the API key you created during the Pre-requisites step above.jss deploy configto deploy the application config from/sitecore/configfolder into your Sitecore instance.- Configure
.envfile according to your environment specifics (see.env-examplefile). npm run buildto build the app.npm run devto start development server.npm startto start the app in connected mode.npm run exportto run static export.
Note: Remove or update the robots.txt if you going to use this kit in production
See Sitecore documentation on Walkthrough: Connecting a Next.js JSS app to Sitecore editors