veryfront 0.1.33 → 0.1.34

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-preview.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/preview/markdown-preview.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAgBnG,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,QAAQ,EAAE,eAAe,CAKvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YAiEjE,cAAc;CAkF7B"}
1
+ {"version":3,"file":"markdown-preview.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/preview/markdown-preview.handler.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,OAAO,MAAM,2BAA2B,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAgBnG,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,QAAQ,EAAE,eAAe,CAKvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YAiEjE,cAAc;CAmF7B"}
@@ -109,7 +109,8 @@ export class MarkdownPreviewHandler extends BaseHandler {
109
109
  projectId: ctx.projectSlug || ctx.projectId || "markdown-preview",
110
110
  filePath,
111
111
  branchId: ctx.parsedDomain?.branch ?? null,
112
- requestHost: req.headers.get("x-forwarded-host") || req.headers.get("host") || url.host,
112
+ requestHost: req.headers.get("x-forwarded-host")?.split(",")[0]?.trim() ||
113
+ req.headers.get("host") || url.host,
113
114
  });
114
115
  const responseBuilder = this.createResponseBuilder(ctx)
115
116
  .withCache("no-cache")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -160,7 +160,8 @@ export class MarkdownPreviewHandler extends BaseHandler {
160
160
  projectId: ctx.projectSlug || ctx.projectId || "markdown-preview",
161
161
  filePath,
162
162
  branchId: ctx.parsedDomain?.branch ?? null,
163
- requestHost: req.headers.get("x-forwarded-host") || req.headers.get("host") || url.host,
163
+ requestHost: req.headers.get("x-forwarded-host")?.split(",")[0]?.trim() ||
164
+ req.headers.get("host") || url.host,
164
165
  });
165
166
 
166
167
  const responseBuilder = this.createResponseBuilder(ctx)