@uniformdev/canvas-next 19.61.1-alpha.13 → 19.61.1-alpha.18
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 +2 -2
- package/dist/route/index.mjs +4 -4
- package/package.json +7 -7
package/dist/route/index.js
CHANGED
|
@@ -480,7 +480,7 @@ var withUniformGetServerSideProps2 = (options) => {
|
|
|
480
480
|
const absoluteUrl = `${context.req.headers["x-forwarded-proto"]}://${context.req.headers.host}${requestUrl}`;
|
|
481
481
|
return {
|
|
482
482
|
redirect: {
|
|
483
|
-
destination: import_redirect.
|
|
483
|
+
destination: (0, import_redirect.getTargetVariableExpandedUrl)(absoluteUrl, matched.redirect),
|
|
484
484
|
statusCode: matched.redirect.targetStatusCode
|
|
485
485
|
}
|
|
486
486
|
};
|
|
@@ -521,7 +521,7 @@ var withUniformGetStaticProps2 = (options) => {
|
|
|
521
521
|
const defaultHandleRedirect = (requestUrl, matched) => {
|
|
522
522
|
return {
|
|
523
523
|
redirect: {
|
|
524
|
-
destination: import_redirect2.
|
|
524
|
+
destination: (0, import_redirect2.getTargetVariableExpandedUrl)(requestUrl, matched.redirect),
|
|
525
525
|
statusCode: matched.redirect.targetStatusCode
|
|
526
526
|
}
|
|
527
527
|
};
|
package/dist/route/index.mjs
CHANGED
|
@@ -58,7 +58,7 @@ function logRouteResponse(response, duration) {
|
|
|
58
58
|
|
|
59
59
|
// src/route/withUniformGetServerSideProps.ts
|
|
60
60
|
import { CANVAS_DRAFT_STATE } from "@uniformdev/canvas";
|
|
61
|
-
import {
|
|
61
|
+
import { getTargetVariableExpandedUrl } from "@uniformdev/redirect";
|
|
62
62
|
|
|
63
63
|
// src/route/createRouteFetcher.ts
|
|
64
64
|
import {
|
|
@@ -208,7 +208,7 @@ var withUniformGetServerSideProps = (options) => {
|
|
|
208
208
|
const absoluteUrl = `${context.req.headers["x-forwarded-proto"]}://${context.req.headers.host}${requestUrl}`;
|
|
209
209
|
return {
|
|
210
210
|
redirect: {
|
|
211
|
-
destination:
|
|
211
|
+
destination: getTargetVariableExpandedUrl(absoluteUrl, matched.redirect),
|
|
212
212
|
statusCode: matched.redirect.targetStatusCode
|
|
213
213
|
}
|
|
214
214
|
};
|
|
@@ -244,12 +244,12 @@ var withUniformGetServerSideProps = (options) => {
|
|
|
244
244
|
|
|
245
245
|
// src/route/withUniformGetStaticProps.ts
|
|
246
246
|
import { CANVAS_DRAFT_STATE as CANVAS_DRAFT_STATE2 } from "@uniformdev/canvas";
|
|
247
|
-
import {
|
|
247
|
+
import { getTargetVariableExpandedUrl as getTargetVariableExpandedUrl2 } from "@uniformdev/redirect";
|
|
248
248
|
var withUniformGetStaticProps = (options) => {
|
|
249
249
|
const defaultHandleRedirect = (requestUrl, matched) => {
|
|
250
250
|
return {
|
|
251
251
|
redirect: {
|
|
252
|
-
destination:
|
|
252
|
+
destination: getTargetVariableExpandedUrl2(requestUrl, matched.redirect),
|
|
253
253
|
statusCode: matched.redirect.targetStatusCode
|
|
254
254
|
}
|
|
255
255
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next",
|
|
3
|
-
"version": "19.61.1-alpha.
|
|
3
|
+
"version": "19.61.1-alpha.18+f26189658",
|
|
4
4
|
"description": "Next.js SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"document": "api-extractor run --local"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@uniformdev/canvas": "19.61.1-alpha.
|
|
71
|
-
"@uniformdev/canvas-react": "19.61.1-alpha.
|
|
72
|
-
"@uniformdev/project-map": "19.61.1-alpha.
|
|
73
|
-
"@uniformdev/redirect": "19.61.1-alpha.
|
|
74
|
-
"@uniformdev/richtext": "19.61.1-alpha.
|
|
70
|
+
"@uniformdev/canvas": "19.61.1-alpha.18+f26189658",
|
|
71
|
+
"@uniformdev/canvas-react": "19.61.1-alpha.18+f26189658",
|
|
72
|
+
"@uniformdev/project-map": "19.61.1-alpha.18+f26189658",
|
|
73
|
+
"@uniformdev/redirect": "19.61.1-alpha.18+f26189658",
|
|
74
|
+
"@uniformdev/richtext": "19.61.1-alpha.18+f26189658",
|
|
75
75
|
"colorette": "2.0.20"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "f2618965881c30f1e995f45a6e880bc2f4d10ebe"
|
|
95
95
|
}
|