@lagon/astro
Advanced tools
Comparing version 0.1.0 to 0.2.0
# @lagon/astro | ||
## 0.2.0 | ||
### Minor Changes | ||
- [#551](https://github.com/lagonapp/lagon/pull/551) [`1cfb186`](https://github.com/lagonapp/lagon/commit/1cfb186480aaac1598aa6b08cc7606847869e170) Thanks [@QuiiBz](https://github.com/QuiiBz)! - Prepare Astro integration for release | ||
### Patch Changes | ||
- [#551](https://github.com/lagonapp/lagon/pull/551) [`1cfb186`](https://github.com/lagonapp/lagon/commit/1cfb186480aaac1598aa6b08cc7606847869e170) Thanks [@QuiiBz](https://github.com/QuiiBz)! - Fix client IP address injection | ||
## 0.1.0 | ||
@@ -4,0 +14,0 @@ |
@@ -7,3 +7,3 @@ import { App } from "astro/app"; | ||
if (routeData) { | ||
Reflect.set(request, Symbol.for("astro.clientAddress"), request.headers.get("cf-connecting-ip")); | ||
Reflect.set(request, Symbol.for("astro.clientAddress"), request.headers.get("x-forwarded-for")); | ||
return app.render(request, routeData); | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "@lagon/astro", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Astro integration to deploy your site to Lagon", | ||
"type": "module", | ||
@@ -12,2 +13,16 @@ "main": "dist/index.js", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/lagonapp/lagon" | ||
}, | ||
"homepage": "https://github.com/lagonapp/lagon/tree/main/packages/integrations/astro", | ||
"keywords": [ | ||
"lagon", | ||
"serverless", | ||
"edge", | ||
"integration", | ||
"astro", | ||
"withastro", | ||
"astro-adapter" | ||
], | ||
"dependencies": { | ||
@@ -17,3 +32,3 @@ "esbuild": "^0.17.0" | ||
"devDependencies": { | ||
"astro": "2.0.0" | ||
"astro": "2.0.2" | ||
}, | ||
@@ -20,0 +35,0 @@ "scripts": { |
@@ -11,3 +11,3 @@ import type { SSRManifest } from 'astro'; | ||
if (routeData) { | ||
Reflect.set(request, Symbol.for('astro.clientAddress'), request.headers.get('cf-connecting-ip')); | ||
Reflect.set(request, Symbol.for('astro.clientAddress'), request.headers.get('x-forwarded-for')); | ||
return app.render(request, routeData); | ||
@@ -14,0 +14,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
43847
11
1
1
6
1