-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Updated upgrade guide for siteinfo service (#1777)
- Loading branch information
1 parent
0e90360
commit 3e2d07c
Showing
1 changed file
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
## Unreleased | ||
|
||
### nextjs | ||
|
||
### nextjs-xmcloud | ||
|
||
### nextjs-sxa | ||
|
||
### nextjs-multisite | ||
|
||
* **Update** packages\create-sitecore-jss\src\templates\nextjs-multisite\scripts\config\plugins\multisite.ts | ||
* **Update** | ||
|
||
* packages\create-sitecore-jss\src\templates\nextjs-multisite\scripts\config\plugins\multisite.ts | ||
|
||
``` | ||
//Remove | ||
useSiteQuery: true, | ||
``` | ||
``` | ||
//Remove | ||
useSiteQuery: true, | ||
``` | ||
|
||
### nextjs-styleguide | ||
**Note for SXP users** | ||
|
||
### react | ||
JSS now uses `site` query to retrieve site info. | ||
When multisite addon is installed, `site` query retrieves both the SXA Headless and the configuration sites. JSS will filter out "website", but any other MVC or non-nextjs sites defined in configuration will be considered for resolution by the JSS app. | ||
In case your setup is like this and you wish to avoid that, and just use the headless sites for your setup, you can add a filter in `\scripts\config\plugins\multisite.ts` file. For example: | ||
|
||
### angular | ||
``` | ||
sites = sites.filter((site) => !['not-headless', 'headful', 'mvc'].includes(site.name)); | ||
``` | ||
|
||
### vue |