New answers tagged

0 votes

Extending LayoutService RenderingContentsResolver class to configure default LayoutService response

Each Resolver is bind with Assembly reference using the Type field as Below . Rather than changing the default we should go for Custom Resolver which is explained Here https://www.romeocadaoas.com/...
user avatar
0 votes

Webp Image not generating when azure CDN enabled

There are 2 different ways to get this to work correctly with a CDN: Through the Accept header. Based on your question it seems like this is the approach you are trying to use. You will have to ...
user avatar
  • 1,069
0 votes

Webp Image not generating when azure CDN enabled

have you checked Dianoga documentation here: https://github.com/kamsar/Dianoga#optimization-strategies? On which version of Dianoga you are? It seems you need to enable Dianoga.NextGenFormats.CDN....
user avatar
0 votes

Headless Dictionary Service not working

IIS Express is not supported for Sitecore development. If you’re comfortable with containers I’d suggest investing your time in that technology. Otherwise you’ll need to setup Sitecore against IIS 10....
user avatar
3 votes
Accepted

Expose configuration items using JSS

You have couple of options to expose Sitecore configuration: Extending Layout Service could be easiest as it's easily accessible to your JSS app. One of the drawbacks of this solution would be ...
user avatar
0 votes

Handle CSS and JavaScript files in Sitecore Headless Implementation

Importing Dynamically using webpacks The dynamic import statement can be used within the code ,to tell Webpack to build a bundle for the desired import. Since the BeMyFriend component only appears ...
user avatar
2 votes
Accepted

Placeholder within Component not showing in JSS

The name is jss-footer/jss-top-links which means you're using dynamic placeholders. This is what the docs say about them: https://doc.sitecore.com/xp/en/developers/hd/190/sitecore-headless-development/...
user avatar
0 votes

How can I change the layoutServiceHost to be read from an environment variable?

The JSS team have an answer here which outlines how to use environment variable and a .env file to move JSS config out of code. However, you still need to build the application and the environment ...
user avatar
  • 4,735
0 votes

JSS deploy items ERROR: TypeError: Cannot read property 'forEach' of undefined

It's a version mismatch issue, I face same issue with Sitecore 10.2 version, checked if you have installed correct version with Sitecore 10.2 then it will start working https://dev.sitecore.net/...
user avatar
0 votes

JSS deploy items ERROR: TypeError: Cannot read property 'forEach' of undefined

Had similar issue, it’s version mismatch, fixed this on our end by creating app in compatible jss version. In this case ours is 9.3, so we created the matching jss version i.e 13.0.0 jss create my-...
user avatar
  • 317
1 vote
Accepted

'jss bootstrap' causes JavaScript heap out of memory error on graphql-let step

We had a similar issue. These Sitecore configs determine which templates are supported by GraphQL; these templates are then represented to the generated TypeScript. Configs: \App_Config\Sitecore\...
user avatar
1 vote

Layout Service performance optimisation

Few ideas for troubleshooting. They are not really related to JSS, but still worth trying: Where are the servers located? When providing TTFB values are these from a region nearby? E.g. you are ...
user avatar
  • 741
2 votes
Accepted

Next.js Headless images not working from rendering / fe instance (System.UriBuilder.set_Scheme)

The problem is that by default in the docker example the Sitecore.LoadBalancing.Enabled setting is set to true which gets the schema for this SPEAK processor from the HttpContext.Current.Request....
user avatar

Top 50 recent answers are included