Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/redirects middleware #985

Merged
merged 2 commits into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextRequest, NextResponse } from 'next/server';
import { RedirectsMiddleware } from '@sitecore-jss/sitecore-jss-nextjs';
import { RedirectsMiddleware } from '@sitecore-jss/sitecore-jss-nextjs/middleware';
import config from 'temp/config';
import { MiddlewarePlugin } from '..';

Expand Down
2 changes: 0 additions & 2 deletions packages/sitecore-jss-nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,3 @@ export {
withPlaceholder,
withDatasourceCheck,
} from '@sitecore-jss/sitecore-jss-react';

export { RedirectsMiddleware } from './middleware/redirects-middleware';
131 changes: 70 additions & 61 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3099,86 +3099,93 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:12.1.0":
version: 12.1.0
resolution: "@next/env@npm:12.1.0"
checksum: 31037e019846a2c3eeb106d64d54084e0b86d1b9b92fdb7332eeb39d94cb4a8e11ddab1a088088f7aea7b60a4cb57781815539676fddedf4305f19f8c8bf5b7f
"@next/env@npm:12.1.5":
version: 12.1.5
resolution: "@next/env@npm:12.1.5"
checksum: 21a6345ad6ff39edd76630484af3f2a87a0984d06be19ca88d9758583a1c724905f1ea6c0d110a4c825430e5bcda835f7197ee820c7173c428416fb615ff97e6
languageName: node
linkType: hard

"@next/swc-android-arm64@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-android-arm64@npm:12.1.0"
"@next/swc-android-arm-eabi@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-android-arm-eabi@npm:12.1.5"
conditions: os=android & cpu=arm
languageName: node
linkType: hard

"@next/swc-android-arm64@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-android-arm64@npm:12.1.5"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard

"@next/swc-darwin-arm64@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-darwin-arm64@npm:12.1.0"
"@next/swc-darwin-arm64@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-darwin-arm64@npm:12.1.5"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@next/swc-darwin-x64@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-darwin-x64@npm:12.1.0"
"@next/swc-darwin-x64@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-darwin-x64@npm:12.1.5"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@next/swc-linux-arm-gnueabihf@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-linux-arm-gnueabihf@npm:12.1.0"
"@next/swc-linux-arm-gnueabihf@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-linux-arm-gnueabihf@npm:12.1.5"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@next/swc-linux-arm64-gnu@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-linux-arm64-gnu@npm:12.1.0"
"@next/swc-linux-arm64-gnu@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-linux-arm64-gnu@npm:12.1.5"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"@next/swc-linux-arm64-musl@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-linux-arm64-musl@npm:12.1.0"
"@next/swc-linux-arm64-musl@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-linux-arm64-musl@npm:12.1.5"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"@next/swc-linux-x64-gnu@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-linux-x64-gnu@npm:12.1.0"
"@next/swc-linux-x64-gnu@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-linux-x64-gnu@npm:12.1.5"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"@next/swc-linux-x64-musl@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-linux-x64-musl@npm:12.1.0"
"@next/swc-linux-x64-musl@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-linux-x64-musl@npm:12.1.5"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"@next/swc-win32-arm64-msvc@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-win32-arm64-msvc@npm:12.1.0"
"@next/swc-win32-arm64-msvc@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-win32-arm64-msvc@npm:12.1.5"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@next/swc-win32-ia32-msvc@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-win32-ia32-msvc@npm:12.1.0"
"@next/swc-win32-ia32-msvc@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-win32-ia32-msvc@npm:12.1.5"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@next/swc-win32-x64-msvc@npm:12.1.0":
version: 12.1.0
resolution: "@next/swc-win32-x64-msvc@npm:12.1.0"
"@next/swc-win32-x64-msvc@npm:12.1.5":
version: 12.1.5
resolution: "@next/swc-win32-x64-msvc@npm:12.1.5"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -18470,32 +18477,34 @@ __metadata:
linkType: hard

"next@npm:^12.1.0":
version: 12.1.0
resolution: "next@npm:12.1.0"
dependencies:
"@next/env": 12.1.0
"@next/swc-android-arm64": 12.1.0
"@next/swc-darwin-arm64": 12.1.0
"@next/swc-darwin-x64": 12.1.0
"@next/swc-linux-arm-gnueabihf": 12.1.0
"@next/swc-linux-arm64-gnu": 12.1.0
"@next/swc-linux-arm64-musl": 12.1.0
"@next/swc-linux-x64-gnu": 12.1.0
"@next/swc-linux-x64-musl": 12.1.0
"@next/swc-win32-arm64-msvc": 12.1.0
"@next/swc-win32-ia32-msvc": 12.1.0
"@next/swc-win32-x64-msvc": 12.1.0
version: 12.1.5
resolution: "next@npm:12.1.5"
dependencies:
"@next/env": 12.1.5
"@next/swc-android-arm-eabi": 12.1.5
"@next/swc-android-arm64": 12.1.5
"@next/swc-darwin-arm64": 12.1.5
"@next/swc-darwin-x64": 12.1.5
"@next/swc-linux-arm-gnueabihf": 12.1.5
"@next/swc-linux-arm64-gnu": 12.1.5
"@next/swc-linux-arm64-musl": 12.1.5
"@next/swc-linux-x64-gnu": 12.1.5
"@next/swc-linux-x64-musl": 12.1.5
"@next/swc-win32-arm64-msvc": 12.1.5
"@next/swc-win32-ia32-msvc": 12.1.5
"@next/swc-win32-x64-msvc": 12.1.5
caniuse-lite: ^1.0.30001283
postcss: 8.4.5
styled-jsx: 5.0.0
use-subscription: 1.5.1
styled-jsx: 5.0.1
peerDependencies:
fibers: ">= 3.1.0"
node-sass: ^6.0.0 || ^7.0.0
react: ^17.0.2 || ^18.0.0-0
react-dom: ^17.0.2 || ^18.0.0-0
sass: ^1.3.0
dependenciesMeta:
"@next/swc-android-arm-eabi":
optional: true
"@next/swc-android-arm64":
optional: true
"@next/swc-darwin-arm64":
Expand Down Expand Up @@ -18527,7 +18536,7 @@ __metadata:
optional: true
bin:
next: dist/bin/next
checksum: 36dbafd5e640c420446dc05077f858ae4a8aaf5f91feb3c6c16c1b3f50b9fb63f743ef282a3bf0c68645442bef8aee643492f6dc62388a17f87064cde064d181
checksum: a70e70f7863035d9b2d5bb70ede6b165d4022c75d8e3b44411097eb20e4a4d9b34205873cb2d0088a76986fe3e0f160edad0ff7602fc269994e02dc4d21d035c
languageName: node
linkType: hard

Expand Down Expand Up @@ -23591,17 +23600,17 @@ __metadata:
languageName: node
linkType: hard

"styled-jsx@npm:5.0.0":
version: 5.0.0
resolution: "styled-jsx@npm:5.0.0"
"styled-jsx@npm:5.0.1":
version: 5.0.1
resolution: "styled-jsx@npm:5.0.1"
peerDependencies:
react: ">= 16.8.0 || 17.x.x || 18.x.x"
react: ">= 16.8.0 || 17.x.x || ^18.0.0-0"
peerDependenciesMeta:
"@babel/core":
optional: true
babel-plugin-macros:
optional: true
checksum: 4958238ac8b8e90ac7d906aca3821e3ffb0c70c34c78b87d27f0f11c830c8237c8f4c0e7952dc51373d6fa097b16a023dcc7c9ededd402d8483b5ed2d8cefda9
checksum: b85eb03da76b566065b10911a24396659b45a34efa16eef87ed8ff2ce3ea7b9b6a9c0c92c3b2113f92cbca9ab12496690d72329cb9932759ea98d0386acb38a9
languageName: node
linkType: hard

Expand Down Expand Up @@ -24963,7 +24972,7 @@ __metadata:
languageName: node
linkType: hard

"use-subscription@npm:1.5.1, use-subscription@npm:^1.0.0":
"use-subscription@npm:^1.0.0":
version: 1.5.1
resolution: "use-subscription@npm:1.5.1"
dependencies:
Expand Down