Skip to content

Commit

Permalink
Update Next.js sample config - layoutServiceConfiguration="default" (#…
Browse files Browse the repository at this point in the history
…722)

* Update Next.js sample config - layoutServiceConfiguration="default"

* Update samples/nextjs/sitecore/config/JssNextWeb.config

Co-authored-by: Adam Brauer <400763+ambrauer@users.noreply.github.com>

Co-authored-by: Adam Brauer <400763+ambrauer@users.noreply.github.com>
  • Loading branch information
anastasiya29 and ambrauer authored Jun 29, 2021
1 parent c96d6da commit a3f43f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions samples/nextjs/sitecore/config/JssNextWeb.config
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@
Defaults are defined in `/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config`

NOTE: graphQLEndpoint enables _Integrated GraphQL_. If not using integrated GraphQL, it can be removed.

NOTE: layoutServiceConfiguration should be set to "default" when using GraphQL Edge schema.
When using integrated GraphQL with Edge schema, a $language value is injected
since language is required in all Edge queries. "jss" configuration does not do this (which is backwards
compatible with JSS versions < 18.0.0).
-->
<app name="JssNextWeb"
layoutServiceConfiguration="default"
sitecorePath="/sitecore/content/JssNextWeb"
useLanguageSpecificLayout="true"
graphQLEndpoint="/sitecore/api/graph/edge"
Expand Down

1 comment on commit a3f43f1

@vercel
Copy link

@vercel vercel bot commented on a3f43f1 Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.