diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a7a94d42a..0dab4a42a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ Our versioning strategy is as follows: * `[templates/nextjs]` Fix incorrectly named .gitignore file `\scripts\temp\.npmignore` ([#1463](https://github.com/Sitecore/jss/pull/1463)) * `[angular]` Avoid sending two dictionary service calls when switching language and refreshing the page ([#1473](https://github.com/Sitecore/jss/pull/1473)) * Fix installed sitecore-jss-* dependency version ([#1478](https://github.com/Sitecore/jss/pull/1478)) +* [node-headless-ssr-experience-edge] Add helper comment for rootItemId ([#1491](https://github.com/Sitecore/jss/pull/1491)) ## 21.1.5 diff --git a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/src/index.ts b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/src/index.ts index 3eddff936a..0083857b3a 100644 --- a/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/src/index.ts +++ b/packages/create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/src/index.ts @@ -17,6 +17,12 @@ const dictionaryService = new GraphQLDictionaryService({ endpoint: config.endpoint, apiKey: config.apiKey, siteName: config.appName, + /* + The Dictionary Service needs a root item ID in order to fetch dictionary phrases for the current + app. If your Sitecore instance only has 1 JSS App, you can specify the root item ID here; + otherwise, the service will attempt to figure out the root item for the current JSS App using GraphQL and app name. + rootItemId: '{GUID}' + */ }); const { renderView, parseRouteUrl } = config.serverBundle;