Questions tagged [nextjs]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
39 views

Next.js Sitecore layout service consumption in SSR

We are trying to implement a dynamic page behavior that will resolve pages for non item existing routes like: https://mywebsite/stores/store1/ (Stores exists as item but store1 not) The idea was that: ...
user avatar
  • 121
0 votes
1 answer
82 views

Sitecore JSS Dynamic Placeholders

I have JSS Next.JS based component, I want to have 2 placeholders with the same key, but with a dynamic suffix. e.g. I need 2 equal columns. <div> <Placeholder name='jss-6' rendering={...
user avatar
  • 3,386
0 votes
1 answer
28 views

Sitecore JSS next.js Link component renders unnecessary field attribute

If you are using next.js v19.0.2 and using the "Link" component with "field" the following markup is generated. <a field="[object Object]"> ... </a> This is ...
user avatar
  • 121
0 votes
1 answer
65 views

Sitecore JSS next.js headless Experience Editor not working in html mode

I'm facing the issue that Experience Editor is loading with components, ribbon and all kind of stuff. Components are selectable but no interaction in ribbon is working whenever I would expect some ...
user avatar
  • 121
0 votes
0 answers
31 views

NullReferenceException when deploying JSS app

I'm trying to create a simple NextJS site using Sitecore (v10.2) & JSS (v19). I have successfully managed to create some components, add some content etc. but now I needed to create a new ...
user avatar
  • 1,073
0 votes
0 answers
71 views

How to create a Sitecore JSS-Next.js app using JSS CLI

Getting below error on command -jss build: creating a Sitecore JSS-Next.js app using JSS CLI Generating static pages (6/9) Error occurred prerendering page "/en/graphql". Read more: https://...
user avatar
2 votes
1 answer
87 views

Current project does not support file deployment into Sitecore instance

I've created a sample nextjs app using jss cli, but when I try to deploy it using: jss deploy app it deploys items successfully, but not files and throws the message below: The current project does ...
user avatar
  • 677
2 votes
0 answers
62 views

Extend GraphQL schema for custom field

I'm working on a 10.2 solution with JSS & NextJS using the GraphQL (edge) endpoint. I already noticed this endpoint is sometimes quite different compared to others and now I would like to extend ...
user avatar
  • 19.1k
2 votes
1 answer
144 views

How to set layout service within same Next.Js application to access multiple site?

We are configuring multiple site within single Next.js application. In experience editor the multisite work perfectly because its passing sc_site parameter as a query string. But in normal mode only ...
user avatar
  • 499
7 votes
1 answer
431 views

How to configure multisite in Sitecore Next.js application?

How do you implement a multisite setup with Sitecore and Next.js, with a Sitecore First Approach? Do we need to create separate Next.js apps for each site or we can we configure it in the same default ...
user avatar
  • 499
0 votes
0 answers
87 views

JSS General Link With Search Field

I am trying to use Sitecore Field General Link With Search in Sitecore JSS NextJS. Although when I am trying to search & select the Sitecore Item in the General Link Field, I am getting the ...
user avatar
  • 53
1 vote
1 answer
1k views

Build error - TypeError: Only absolute URLs are supported

When not using graphql feature npm run build fails with following error: > Build error occurred TypeError: Only absolute URLs are supported at getNodeRequestOptions (C:\Projects\TEMP\test-jss-...
user avatar
0 votes
2 answers
119 views

JSS 16.0 in combination with Sitecore 9.3

Due compatibility table we can use JSS 16 only on Sitecore 10. I have no ability to upgrade Sitecore, so my question - Did someone tried to install JSS 16 on Sitecore 9.3, and is it possible or ...
user avatar
0 votes
1 answer
154 views

A potentially dangerous Request.Path value was detected from the client (:) [closed]

I followed the steps on https://jss.sitecore.com/docs/client-frameworks/getting-started/app-deployment to get my local starter app connected to my local sitecore install. In the nextjs app it works ...
user avatar
1 vote
0 answers
108 views

Next.js Sample Site Installation Failed

I am trying to install Next.js Helix Example site: Everything looks good until items are serialized: Successfully built ec6606563cd4 Successfully tagged basic-company-nextjs-rendering:latest Starting ...
user avatar
  • 17.7k