Skip to content
Unofficial static site generator for Sitecore JSS applications.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src
.gitignore
.npmignore
LICENSE.md
README.md
package-lock.json
package.json
tsconfig.json

README.md

Static Site Generator for Sitecore JSS

A static site generator for Sitecore JSS applications. Read more and find information on getting started here.

Requirements

  • Sitecore JSS React 11.02 or higher.

Getting Started

  • npm install jss-static-site-generator --save-dev
  • Copy bootstrap-static.js and build-static.js from here.
  • Edit sitecoreApiHost in bootstrap-static.js, change to the domain where your generated site will be hosted.
  • Add the following commands to your JSS project package.json
"bootstrap:static:disconnected": "node scripts/bootstrap-static.js --disconnected",
"bootstrap:static:connected": "node scripts/bootstrap-static.js",
"build:static": "npm-run-all --serial bootstrap:static:disconnected build:client build:server --parallel generate:static",
"build:static:connected": "npm-run-all --serial bootstrap:static:connected build:client build:server --parallel generate:static",
"run:static": "npm-run-all --parallel generate:static",
"generate:static": "node ./scripts/build-static.js"
  • Run build:static or build:static:connected depending on where you want data sourced from.

Resources

You can’t perform that action at this time.