From e0ee7765d0159913aca5fd1bc83c953be3afcf2e Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 6 Apr 2023 19:43:15 +0000 Subject: [PATCH] [ci] format --- .../integrations/netlify/src/netlify-edge-functions.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/integrations/netlify/src/netlify-edge-functions.ts b/packages/integrations/netlify/src/netlify-edge-functions.ts index 8011e2b1b..4a6d3674c 100644 --- a/packages/integrations/netlify/src/netlify-edge-functions.ts +++ b/packages/integrations/netlify/src/netlify-edge-functions.ts @@ -1,5 +1,5 @@ -import type { SSRManifest } from 'astro'; import type { Context } from '@netlify/edge-functions'; +import type { SSRManifest } from 'astro'; import { App } from 'astro/app'; const clientAddressSymbol = Symbol.for('astro.clientAddress'); @@ -16,9 +16,10 @@ export function createExports(manifest: SSRManifest) { return; } if (app.match(request)) { - const ip = request.headers.get('x-nf-client-connection-ip') - || context?.ip - || (context as any)?.remoteAddr?.hostname; + const ip = + request.headers.get('x-nf-client-connection-ip') || + context?.ip || + (context as any)?.remoteAddr?.hostname; Reflect.set(request, clientAddressSymbol, ip); const response = await app.render(request); if (app.setCookieHeaders) {