diff --git a/CHANGELOG.md b/CHANGELOG.md index 017cbe37bd..af4aa31da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,7 +60,7 @@ Our versioning strategy is as follows: ### 🎉 New Features & Improvements * `[templates/react]` `[templates/angular]` `[templates/vue]` `[templates/node-headless-ssr-proxy]` `[templates/node-headless-ssr-experience-edge]` ([#1647](https://github.com/Sitecore/jss/pull/1647)) ([#1672](https://github.com/Sitecore/jss/pull/1672)) Switch from using JSS_APP_NAME to SITECORE_SITE_NAME - environment and config variables in React, Vue, Angular templates as well as ssr node proxy apps templates have been renamed. -* `[templates/nextjs]` `[sitecore-jss-nextjs]` `[sitecore-jss]` ([#1640](https://github.com/Sitecore/jss/pull/1640)) ([#1662](https://github.com/Sitecore/jss/pull/1662))([#1661](https://github.com/Sitecore/jss/pull/1661)) ([#1672](https://github.com/Sitecore/jss/pull/1672)) ([#1675](https://github.com/Sitecore/jss/pull/1675)) Sitecore Edge Platform and Context support: +* `[templates/nextjs]` `[sitecore-jss-nextjs]` `[sitecore-jss]` ([#1640](https://github.com/Sitecore/jss/pull/1640)) ([#1662](https://github.com/Sitecore/jss/pull/1662))([#1661](https://github.com/Sitecore/jss/pull/1661)) ([#1672](https://github.com/Sitecore/jss/pull/1672)) ([#1675](https://github.com/Sitecore/jss/pull/1675)) ([#1710](https://github.com/Sitecore/jss/pull/1710)) Sitecore Edge Platform and Context support: * Introducing the _clientFactory_ property. This property can be utilized by GraphQL-based services, the previously used _endpoint_ and _apiKey_ properties are deprecated. The _clientFactory_ serves as the central hub for executing GraphQL requests within the application. * New SITECORE_EDGE_CONTEXT_ID environment variable has been added. * The JSS_APP_NAME environment variable has been updated and is now referred to as SITECORE_SITE_NAME. diff --git a/packages/create-sitecore-jss/src/templates/nextjs-styleguide/src/pages/_app.tsx b/packages/create-sitecore-jss/src/templates/nextjs-styleguide/src/pages/_app.tsx index 36fa2b36ef..4970ced072 100644 --- a/packages/create-sitecore-jss/src/templates/nextjs-styleguide/src/pages/_app.tsx +++ b/packages/create-sitecore-jss/src/templates/nextjs-styleguide/src/pages/_app.tsx @@ -3,6 +3,7 @@ import Router from 'next/router'; import { I18nProvider } from 'next-localization'; import NProgress from 'nprogress'; import { SitecorePageProps } from 'lib/page-props'; +import Bootstrap from 'src/Bootstrap'; // Using bootstrap and nprogress are completely optional. // bootstrap is used here to provide a clean layout for samples, without needing extra CSS in the sample app @@ -22,12 +23,17 @@ function App({ Component, pageProps }: AppProps): JSX.Element const { dictionary, ...rest } = pageProps; return ( - // Use the next-localization (w/ rosetta) library to provide our translation dictionary to the app. - // Note Next.js does not (currently) provide anything for translation, only i18n routing. - // If your app is not multilingual, next-localization and references to it can be removed. - - - + <> + + {/* + // Use the next-localization (w/ rosetta) library to provide our translation dictionary to the app. + // Note Next.js does not (currently) provide anything for translation, only i18n routing. + // If your app is not multilingual, next-localization and references to it can be removed. + */} + + + + ); }