Skip to content

Commit

Permalink
[JSS] Update sxastarter to 21.7.0 (sitecorelabs#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
illiakovalenko authored Mar 27, 2024
1 parent 330d5bc commit 5a10831
Show file tree
Hide file tree
Showing 26 changed files with 2,621 additions and 3,839 deletions.
3 changes: 2 additions & 1 deletion src/sxastarter/.env
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ SITECORE_SITE_NAME=
DEFAULT_LANGUAGE=

# How many times should GraphQL Layout, Dictionary and ErrorPages services retry a fetch when endpoint rate limit is reached
GRAPH_QL_SERVICE_RETRIES=0
# You can disable it for all the services by configuring it to 0.
GRAPH_QL_SERVICE_RETRIES=3

# The way in which layout and dictionary data is fetched from Sitecore
FETCH_WITH=GraphQL
Expand Down
18 changes: 18 additions & 0 deletions src/sxastarter/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ const nextConfig = {
// Enable React Strict Mode
reactStrictMode: true,

// use this configuration to ensure that only images from the whitelisted domains
// can be served from the Next.js Image Optimization API
// see https://nextjs.org/docs/app/api-reference/components/image#remotepatterns
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'edge*.**',
port: '',
},
{
protocol: 'https',
hostname: 'feaas*.blob.core.windows.net',
port: '',
},
]
},

async rewrites() {
// When in connected mode we want to proxy Sitecore paths off to Sitecore
return [
Expand Down
Loading

0 comments on commit 5a10831

Please sign in to comment.