New answers tagged jss
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/...
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 ...
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....
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....
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 ...
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 ...
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/...
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 ...
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/...
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-...
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\...
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 ...
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....
Top 50 recent answers are included
Related Tags
jss × 508graphql × 42
layout-service × 28
experience-editor × 20
sxa × 19
react × 19
sitecore-api × 18
nextjs × 14
personalization × 11
docker × 11
sitecore-forms × 9
sitecore-react × 9
sitecore-client × 8
azure × 7
deployment × 7
sxa-jss × 7
security × 6
multisite × 6
placeholders × 6
datasource × 6
dictionary × 6
solr × 4
media-library × 4
javascript × 4
container × 4