๐ New Features & Improvements
[nextjs]
Rework and simplify .env (#89):- Introduced
.env.container.example
- Intended for local development against a Sitecore container instance.
- Introduced
.env.remote.example
- Intended for working with a remote Sitecore instance.
- Removed
GRAPH_QL_ENDPOINT
environment variable
No longer required or used. - Removed
GRAPH_QL_SERVICE_RETRIES
environment variable
This is not environment-specific and should be defined in the configuration instead. - Removed
DISABLE_SSG_FETCH
environment variable- In XM Cloud, this is set to
true
by default as the application runs as an editing host. - It can still be configured via the
DISABLE_SSG_FETCH
environment variable or thedisableStaticPaths
config property if needed. - By default, it is set to
false
in the configuration.
- In XM Cloud, this is set to
- Introduced
[core]
[nextjs]
IntroducedgetRobots
method inSitecoreClient
and a newRobotsMiddleware
for Next.js API routes (#83)- The
getRobots(siteName, fetchOptions?)
method centralizes logic for fetchingrobots.txt
content. - A new
RobotsMiddleware
class encapsulates HTTP-level logic for generatingrobots.txt
responses in Next.js apps. - These additions follow the same extensible architecture as existing features enabling custom behavior via service overrides and improving consistency across endpoints.
- The
[cli]
Introduce "project" subcommands (#73)[nextjs]
Enhance customizability for Sitecore Client and SDK Middlwares (#87)[core]
[nextjs]
[create-sitecore-jss]
Passing configuration object todefineConfig
in sitecore.config is now optional. Introduced sitecore.config.ts.example (#90) (#93)
๐ Breaking Changes
[core]
SXA Form can't fire CloudSDK events due to initialization error (#63):- Form utilities have been moved from
@sitecore-content-sdk/core/form
to the root of@sitecore-content-sdk/core
. Update your imports to reflect this change if you are referencing these utilities.
- Form utilities have been moved from
[nextjs]
Update React to version 19 and Next JS to version 15 (#76)
๐ Bug Fixes
[nextjs]
Fix for case sensitive redirects (make all redirects case-insensitive) (#70)[core]
Fix for lookbehind regex. (not supported on ios 16) (#67)[nextjs]
Render "unoptimized" Next Image in component rendering mode (#66)[react]
ExtendwithDatasourceCheck
logic to handle empty datasource in DesignLibrary mode (#62)[cli]
Process env variables in both cli global and local mode by default. (#61)[react]
[nextjs]
Do not render EditingScripts component in DesignLibrary component. Fix 'dataSourceId' query parameter name in editing render middleware. (#64)