Skip to content

Commit

Permalink
[node-headless-ssr-experience-edge] Add helper comment for `rootItemI…
Browse files Browse the repository at this point in the history
…d` (#1491)

* added rootItemId commnet

* update changelog
  • Loading branch information
addy-pathania authored May 19, 2023
1 parent a617a49 commit 6e3992c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e3992c

Please sign in to comment.