@uniformdev/canvas-next 19.14.2-alpha.11 → 19.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/route/index.js +5 -0
- package/dist/route/index.mjs +5 -0
- package/package.json +7 -7
package/dist/route/index.js
CHANGED
|
@@ -465,6 +465,11 @@ function createRouteFetcher(options) {
|
|
|
465
465
|
// src/route/withUniformGetServerSideProps.ts
|
|
466
466
|
var unstable_withUniformGetServerSideProps = (options) => {
|
|
467
467
|
const defaultHandleRedirect = (requestUrl, matched) => {
|
|
468
|
+
if (matched.redirect.targetStatusCode > 400) {
|
|
469
|
+
return {
|
|
470
|
+
notFound: true
|
|
471
|
+
};
|
|
472
|
+
}
|
|
468
473
|
return {
|
|
469
474
|
redirect: {
|
|
470
475
|
destination: import_redirect.RedirectClient.getTargetVariableExpandedUrl(requestUrl, matched.redirect),
|
package/dist/route/index.mjs
CHANGED
|
@@ -191,6 +191,11 @@ function createRouteFetcher(options) {
|
|
|
191
191
|
// src/route/withUniformGetServerSideProps.ts
|
|
192
192
|
var unstable_withUniformGetServerSideProps = (options) => {
|
|
193
193
|
const defaultHandleRedirect = (requestUrl, matched) => {
|
|
194
|
+
if (matched.redirect.targetStatusCode > 400) {
|
|
195
|
+
return {
|
|
196
|
+
notFound: true
|
|
197
|
+
};
|
|
198
|
+
}
|
|
194
199
|
return {
|
|
195
200
|
redirect: {
|
|
196
201
|
destination: RedirectClient.getTargetVariableExpandedUrl(requestUrl, matched.redirect),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.17.0",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"document": "api-extractor run --local"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@uniformdev/canvas": "19.
|
|
67
|
-
"@uniformdev/canvas-react": "19.
|
|
68
|
-
"@uniformdev/project-map": "19.
|
|
69
|
-
"@uniformdev/redirect": "19.
|
|
70
|
-
"@uniformdev/richtext": "19.
|
|
66
|
+
"@uniformdev/canvas": "19.17.0",
|
|
67
|
+
"@uniformdev/canvas-react": "19.17.0",
|
|
68
|
+
"@uniformdev/project-map": "19.17.0",
|
|
69
|
+
"@uniformdev/redirect": "19.17.0",
|
|
70
|
+
"@uniformdev/richtext": "19.17.0",
|
|
71
71
|
"colorette": "2.0.20"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "ed86997d97cefd0d6849abdeb3bdf3737812ea01"
|
|
91
91
|
}
|