@uniformdev/canvas-next 19.36.1-alpha.4 → 19.36.1-alpha.61

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.
@@ -472,16 +472,15 @@ function createRouteFetcher(options) {
472
472
 
473
473
  // src/route/withUniformGetServerSideProps.ts
474
474
  var withUniformGetServerSideProps2 = (options) => {
475
- const defaultHandleRedirect = (requestUrl, matched, context) => {
475
+ const defaultHandleRedirect = (requestUrl, matched) => {
476
476
  if (matched.redirect.targetStatusCode > 400) {
477
477
  return {
478
478
  notFound: true
479
479
  };
480
480
  }
481
- const absoluteUrl = `${context.req.headers["x-forwarded-proto"]}://${context.req.headers.host}${requestUrl}`;
482
481
  return {
483
482
  redirect: {
484
- destination: import_redirect.RedirectClient.getTargetVariableExpandedUrl(absoluteUrl, matched.redirect),
483
+ destination: import_redirect.RedirectClient.getTargetVariableExpandedUrl(requestUrl, matched.redirect),
485
484
  statusCode: matched.redirect.targetStatusCode
486
485
  }
487
486
  };
@@ -199,16 +199,15 @@ function createRouteFetcher(options) {
199
199
 
200
200
  // src/route/withUniformGetServerSideProps.ts
201
201
  var withUniformGetServerSideProps = (options) => {
202
- const defaultHandleRedirect = (requestUrl, matched, context) => {
202
+ const defaultHandleRedirect = (requestUrl, matched) => {
203
203
  if (matched.redirect.targetStatusCode > 400) {
204
204
  return {
205
205
  notFound: true
206
206
  };
207
207
  }
208
- const absoluteUrl = `${context.req.headers["x-forwarded-proto"]}://${context.req.headers.host}${requestUrl}`;
209
208
  return {
210
209
  redirect: {
211
- destination: RedirectClient.getTargetVariableExpandedUrl(absoluteUrl, matched.redirect),
210
+ destination: RedirectClient.getTargetVariableExpandedUrl(requestUrl, matched.redirect),
212
211
  statusCode: matched.redirect.targetStatusCode
213
212
  }
214
213
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next",
3
- "version": "19.36.1-alpha.4+99b59c404",
3
+ "version": "19.36.1-alpha.61+12e4e2a6e",
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.36.1-alpha.4+99b59c404",
67
- "@uniformdev/canvas-react": "19.36.1-alpha.4+99b59c404",
68
- "@uniformdev/project-map": "19.36.1-alpha.4+99b59c404",
69
- "@uniformdev/redirect": "19.36.1-alpha.4+99b59c404",
70
- "@uniformdev/richtext": "19.36.1-alpha.4+99b59c404",
66
+ "@uniformdev/canvas": "19.36.1-alpha.61+12e4e2a6e",
67
+ "@uniformdev/canvas-react": "19.36.1-alpha.61+12e4e2a6e",
68
+ "@uniformdev/project-map": "19.36.1-alpha.61+12e4e2a6e",
69
+ "@uniformdev/redirect": "19.36.1-alpha.61+12e4e2a6e",
70
+ "@uniformdev/richtext": "19.36.1-alpha.61+12e4e2a6e",
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": "99b59c4046213b258e6610258c603878c490a0b9"
90
+ "gitHead": "12e4e2a6e17788b5337c4c0c90c094735d256c60"
91
91
  }