sitecore-jss-nextjs-starterkit
sitecore-jss-nextjs-starterkit copied to clipboard
Jamstack for Sitecore JSS using Next.js with Uniform SDK
Uniform - Sitecore JSS - Next.js starter kit
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. 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