Where can I usually mock (for JSS disconnected mode) additional layout service data that I put into the layoutservice response by a "JssGetLayoutServiceContextProcessor".

So if I add additional context data like canonical links urls to the output like (see languageSwitch) :

"sitecore": {
               "context": {
                   "pageEditing": false,
                   "user": {
                       "domain": "sitecore",
                       "name": "admin"
                   "site": {
                       "name": "JssReactWeb"
                   "pageState": "normal",
                   "language": "en",
                   "languageSwitch": {
                       "de": "http:\u002F\u002Fmyweb\u002Fde\meineseite",
                       "en": "http:\u002F\u002Fmyweb\u002Fen\mypage"


1 Answer 1


See: In disconnected-mode-proxy.js:

const proxyOptions = {
  appRoot: __dirname,
  customizeContext: (context, route, currentManifest, request, response) => {
    context.languageSwitch = { ... }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.