@sveltejs/adapter-cloudflare
Advanced tools
Comparing version 1.0.0-next.15 to 1.0.0-next.16
@@ -53,3 +53,8 @@ import { Server } from 'SERVER'; | ||
try { | ||
return await server.respond(req, { platform: { env, context } }); | ||
return await server.respond(req, { | ||
platform: { env, context }, | ||
getClientAddress() { | ||
return req.headers.get('cf-connecting-ip'); | ||
} | ||
}); | ||
} catch (e) { | ||
@@ -56,0 +61,0 @@ return new Response('Error rendering route: ' + (e.message || e.toString()), { status: 500 }); |
{ | ||
"name": "@sveltejs/adapter-cloudflare", | ||
"version": "1.0.0-next.15", | ||
"version": "1.0.0-next.16", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
8167
101