Skip to content

Commit

Permalink
Prepare upgrade guide for release
Browse files Browse the repository at this point in the history
  • Loading branch information
art-alexeyenko committed Apr 18, 2024
1 parent 0e90360 commit 2033f0f
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions docs/upgrades/unreleased.md
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

0 comments on commit 2033f0f

Please sign in to comment.