Skip to main content

Questions tagged [nextjs]

Questions related to Next.js in Sitecore context should be considered into this tag.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

We’re working on a Sitecore XM Cloud implementation with a Next.js frontend. Our site uses Marketo forms that appear on multiple pages. Scenario When a user navigates from one page with a Marketo form ...
Shiva's user avatar
  • 433
1 vote
1 answer
77 views

For context, I'm updating from Sitecore 10.3 XP using a multisite NextJS application using JSS version 21.7.1 to Sitecore 10.4 XP and JSS 22.9.0 I'm facing the following issue when loading the Site A ...
Efrain Gutierrez's user avatar
1 vote
3 answers
63 views

I'm using Sitecore XM Cloud with a Next.js application. I've set up an Experience Edge webhook to trigger ISR (Incremental Static Regeneration) when content is published. The Problem: When I publish ...
Daria Fedele's user avatar
3 votes
3 answers
199 views

I want to create a Sitecore JSS project using Next.js. I’m looking for the exact CLI commands to scaffold the project, including the recommended options (like GraphQL for data fetching and SSG for pre-...
sns's user avatar
  • 501
0 votes
0 answers
29 views

I recently encountered a scenario in which average response time spiked on my CD server. At times, response times were 20 seconds or longer. This caused a massive increase in Vercel Function GB-hours ...
Marcel Gruber's user avatar
0 votes
1 answer
45 views

My Vercel builds suddenly started failing in my test environment at the SSG/GetStaticProps step with the following error: ClientError: Provided SSC API key is not valid.:{"response":{"...
Marcel Gruber's user avatar
0 votes
1 answer
86 views

I am thinking about the key areas and scenarios one needs to consider regarding scenarios in which an app that integrates with the Engage SDK is being used in various scenarios such as an authoring ...
Marcel Gruber's user avatar
1 vote
2 answers
204 views

Currently I am working on a sample app build on NextJs starter project where I have created a simple component, however my build is getting failed on XM Cloud Deploy App. Next.js 15.3.5 Errors from ...
Arjun Arora's user avatar
1 vote
2 answers
144 views

Hello Sitecore Community, I would like to share a problem with Next JS app, We are using Azure Linux Web App with Node JS 20 and Next JS version 14.2.25. If anyone has faced similar issue or some ...
harsh agrawal's user avatar
0 votes
1 answer
73 views

I am setting up Personalize on a headless site that I access via http://localhost:3000. I have the following code in middleware.ts: const engageServer = initServer({      clientKey: "secret&...
Marcel Gruber's user avatar
0 votes
1 answer
63 views

I am using Docker containers for local development. On my Next.js rendering site, some of the media assets on my local are responding with a 500 and the following error: [ArgumentException: value] ...
Marcel Gruber's user avatar
2 votes
1 answer
86 views

I'm deploying a Sitecore JSS Headless Next.js project (with SSR support) along with a Sitecore CD instance on the same Azure App Service (Windows). What I've done: Deployed the Sitecore CD instance ...
Basundhra Singh's user avatar
3 votes
2 answers
103 views

We have a page that has the alert banner added from Personalize. If you navigate to another page using the primary navigation or any other internal links, the page changes but the banner doesn't go ...
Erica Stockwell-Alpert's user avatar
2 votes
1 answer
104 views

Error while uploading package: 400 Bad Request Could not find JSS app configuration for 'nhmmultisite'. Ensure you have included or previously installed a configuration patch file for the JSS app. ...
Basundhra Singh's user avatar
1 vote
1 answer
92 views

We’re encountering an issue with a component(which is added in sitecore cms and has html,css,scripts) in our Sitecore Headless (Next.js) implementation. In Sitecore XP, we were able to use Rich Text ...
user16527's user avatar
0 votes
2 answers
111 views

how can I get all of the languages that an item has versions in in GraphQL? e.g. in .Net I would have done this: Item tempItem = Sitecore.Context.Database.GetItem(tempID); foreach (var itemLanguage in ...
Erica Stockwell-Alpert's user avatar
0 votes
1 answer
82 views

We are working on Sitecore nextjs project. By default, we have multisite plugin added in our solution which runs on jss build and puts all site details in config.js. This includes site name, host name ...
Vinod Chavan's user avatar
1 vote
3 answers
172 views

We want to render current sitecore item url in one of the sitecore nextjs component. Just want to know if there is any API or any other correct way to do it?
Vinod Chavan's user avatar
1 vote
3 answers
138 views

We are trying to implement our sxa metadata partial design to headless site. We have one HTML Snippet component which renders value from one multiline field. We have some third party scripts there in ...
Vinod Chavan's user avatar
2 votes
2 answers
228 views

I have successfully implemented custom 404 and 500 error pages in my XM Cloud local instance, following the guidelines outlined in this article. Below are the steps I followed. Created custom 404 and ...
Mr. Pepito's user avatar
1 vote
2 answers
175 views

Any reference for how to generate sitemap xml with sitecore jss with nextjs. For me getting 404 error page for URL http://localhost:3000/sitemap.xml.
Anekar Vishal's user avatar
1 vote
0 answers
68 views

We recently upgraded to JSS 22.1 and we encountered an issue when our Next.js app running on localhost:3000 is trying to call the edge API: We didn't encounter this issue before the upgrade so we're ...
Lala's user avatar
  • 426
2 votes
0 answers
91 views

We are using Sitecore 10.4 with the Next.js multisite template, hosted on an IIS server using IISNode. We have two websites, namely site-one and site-two, and the multisite resolver is correctly ...
Andi AR's user avatar
  • 981
2 votes
2 answers
268 views

This is a vanilla installation on my local Sitecore 10.4 XP. The module installed is Sitecore Headless Services Server XP 22.0.11. The front-end is using the Get Starter template, version 22.3.1, with ...
Andi AR's user avatar
  • 981
0 votes
1 answer
96 views

I'm trying to figure out a multilist field on a rendering in Sitecore 10.2 headless. I created a rendering in Sitecore. It has the Datasource Resolver. The datasource has a single field, 'locations', ...
Erica Stockwell-Alpert's user avatar
0 votes
1 answer
134 views

In our headless 10.2 site, pages that have a lot of content fail to load in Experience Editor, with the error Connection to your rendering host failed with a Request Entity Too Large error. Ensure the ...
Erica Stockwell-Alpert's user avatar
1 vote
0 answers
100 views

I'm getting 405 method not allowed for the layout request in my local developer 10.4 Headless SXA site with Docker. Backstory - I initially had everything up and running before being forced a Windows ...
mt-cinfin's user avatar
4 votes
1 answer
139 views

What options are available to handle the dynamic pages in Sitecore and Next.js? Let's say we have created a page called "devpage" and we have the dynamic routes like this devpage/{dynamic ...
Lahiru Lanka Rathnayaka's user avatar
3 votes
1 answer
251 views

I'm working with Sitecore-Search and Next.js (Sitecore JSS) to create a search component. Right now, I don’t want the search API to be called when the page loads. I only want the API call to happen ...
Alberto's user avatar
  • 33
5 votes
4 answers
383 views

I recently tried to add another language for my website created in XM cloud. I used the OOB script provided by Sitecore to add another language and have published the items in edge server as well. ...
Sawmya Mundra's user avatar
5 votes
1 answer
285 views

We have a headless website with a front end based on a Next.js starter template. We use connected GraphQL calls for certain search and filter functionalities, allowing users to interact with the site (...
Andi AR's user avatar
  • 981
2 votes
1 answer
196 views

How to create a rendering variant in sitecore jss with nextjs. Any document to follow.
Anekar Vishal's user avatar
2 votes
3 answers
203 views

I'm working on an SXA multilingual site and have set the language embedding option to "always." I've also added the source and destination URLs. Example below I've accessed our business ...
Saiprasad's user avatar
  • 123
6 votes
3 answers
673 views

I got the question to check which version of NextJS was compatible with Sitecore 10.2 - 10.4. I managed to find information in the Compatibility table but that refers to the versions of JSS / Headless ...
Gatogordo's user avatar
  • 20.5k
4 votes
1 answer
441 views

I'm using Next.js with Sitecore JSS in a headless project, and I have a problem with loading third-party scripts and iframes when navigating between pages. What’s happening: If I use Sitecore's <...
Krushna's user avatar
  • 532
2 votes
5 answers
222 views

In Sitecore .Net 10.3.1 (rev. 009452) SXA based Site with docker setup, we configured site definition for CM/CD/Preview, and updated hostname in SXA CMS. Now in our environment targethostname is ...
Praveen Soni's user avatar
3 votes
4 answers
586 views

How to fetch the response of a graph ql query from next js
coder's user avatar
  • 57
2 votes
2 answers
651 views

Is there a way to support customized (per site) 404 pages in a multisite environment of Sitecore JSS + Next.js? According to Sitecore, it’s not possible, but perhaps someone has figured out a ...
Lukasz123123's user avatar
1 vote
1 answer
96 views

I have a rendering with a data source item, and under it are child items; both of which are being retrieved via GraphQL. One of our requirements is for these child items to be styled differently and ...
chrono.lala's user avatar
2 votes
0 answers
125 views

We have one functionality to fetch the list of users from user manager in Sitecore xm cloud and pass the data to layout service. It's a headless approach and we are only using next js and not using ....
user14699's user avatar
3 votes
2 answers
157 views

Was anyone able to get wildcard pages working with a multisite Next.js head? All solutions I have seen just assume that your head is for a single site so there is no need for the multisite middleware. ...
Tomas Bennar's user avatar
1 vote
1 answer
388 views

I have one footer component available on the page design and that page design is applied on all of the pages of the site. When I try to run the site locally using next js localhost:3000 application ...
George Carter's user avatar
0 votes
1 answer
202 views

Steps I have followed so far: npm i -g @sitecore-jss/[email protected] jss create testapp nextjs --branch release/18.0.0 jss start Add output:'export' in next.config.js file npm run build - **...
Somnath's user avatar
1 vote
2 answers
293 views

I have a project with footer.tsx component in it. I am trying to load the next js project with npm run start:connected command and it is giving me the error as It should map the properties on the ...
George Carter's user avatar
1 vote
1 answer
410 views

I am trying to work with Graph QL Endpoint "/sitecore/api/graph/items/master" in my next js app. But I am receiving error as "Cannot query field "layout" on type "Query&...
Sylesh JL's user avatar
  • 191
0 votes
1 answer
171 views

After a Vercel deploy, the first request to the site results in a client side exception in which a web page does not render properly until a subsequent load. The page is rendered via SSR. On the back ...
Marcel Gruber's user avatar
2 votes
2 answers
366 views

We need to use a source query for the General Link field type to display only the current page's data. In Sitecore XM Clould, is there any way we can achieve it from the front code (NextJs) as the ...
shrutika shete's user avatar
1 vote
2 answers
312 views

We are working on Sitecore 10.3 SXA (Headless with Next.js). While trying to change the layout of a site, we are getting (failed)net::ERR_HTTP2_PROTOCOL_ERROR while accessing the Layout Service. Are ...
Hari Prasad Kotha's user avatar
2 votes
1 answer
220 views

I am using Sitecore 10.3.1 with JSS-Next.js app version 21.5.3 and Node version 21.7.3. My requirement is to handle client and server errors at the component level. I am currently using the "?&...
Saiprasad's user avatar
  • 123
2 votes
1 answer
136 views

I installed the Sitecore 10.4 with Headless SXA and I noticed a strange behavior. On the components which has a "Component GraphQL Query" this field is ignored. On a 10.3 solution Link List ...
Vlad Iobagiu's user avatar
  • 18.8k