From 5a221c53ef2381859d9e57d2b9cdc5669bee03bc Mon Sep 17 00:00:00 2001 From: Ruslan Matkovskyi <100142572+matkovskyi@users.noreply.github.com> Date: Fri, 15 Apr 2022 13:19:17 +0300 Subject: [PATCH] #hotfix fixed import middleware nextjs-sxa (#984) (cherry picked from commit ba8b08f8169d58fb6fdbd7d839d39ded6189d2af) --- .../create-sitecore-jss/src/templates/nextjs-sxa/package.json | 2 +- .../src/lib/middleware/plugins/redirects.ts | 0 packages/sitecore-jss-nextjs/src/index.ts | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) rename packages/create-sitecore-jss/src/templates/{nextjs => nextjs-sxa}/src/lib/middleware/plugins/redirects.ts (100%) diff --git a/packages/create-sitecore-jss/src/templates/nextjs-sxa/package.json b/packages/create-sitecore-jss/src/templates/nextjs-sxa/package.json index a3bf878ab8..abf099e620 100644 --- a/packages/create-sitecore-jss/src/templates/nextjs-sxa/package.json +++ b/packages/create-sitecore-jss/src/templates/nextjs-sxa/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "bootstrap": "^5.1.3", + "bootstrap": "^5.1.3" } } \ No newline at end of file diff --git a/packages/create-sitecore-jss/src/templates/nextjs/src/lib/middleware/plugins/redirects.ts b/packages/create-sitecore-jss/src/templates/nextjs-sxa/src/lib/middleware/plugins/redirects.ts similarity index 100% rename from packages/create-sitecore-jss/src/templates/nextjs/src/lib/middleware/plugins/redirects.ts rename to packages/create-sitecore-jss/src/templates/nextjs-sxa/src/lib/middleware/plugins/redirects.ts diff --git a/packages/sitecore-jss-nextjs/src/index.ts b/packages/sitecore-jss-nextjs/src/index.ts index d5982465d4..f4523708b7 100644 --- a/packages/sitecore-jss-nextjs/src/index.ts +++ b/packages/sitecore-jss-nextjs/src/index.ts @@ -121,3 +121,5 @@ export { withPlaceholder, withDatasourceCheck, } from '@sitecore-jss/sitecore-jss-react'; + +export { RedirectsMiddleware } from './middleware/redirects-middleware';