From 9cda184bec19d7268411e1c95ffbbace13f9565e Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 5 Dec 2024 12:26:14 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/build/generate.ts | 2 +- packages/astro/src/core/request.ts | 4 ++-- packages/astro/src/vite-plugin-astro-server/route.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/core/build/generate.ts b/packages/astro/src/core/build/generate.ts index 84d344bfbb..5bdd6dc2f4 100644 --- a/packages/astro/src/core/build/generate.ts +++ b/packages/astro/src/core/build/generate.ts @@ -437,7 +437,7 @@ async function generatePath( headers: new Headers(), logger, isPrerendered: true, - routePattern: route.component + routePattern: route.component, }); const renderContext = await RenderContext.create({ pipeline, diff --git a/packages/astro/src/core/request.ts b/packages/astro/src/core/request.ts index 98d4402c6d..71e7da83c9 100644 --- a/packages/astro/src/core/request.ts +++ b/packages/astro/src/core/request.ts @@ -21,7 +21,7 @@ export interface CreateRequestOptions { */ isPrerendered?: boolean; - routePattern: string + routePattern: string; } const clientAddressSymbol = Symbol.for('astro.clientAddress'); @@ -43,7 +43,7 @@ export function createRequest({ logger, locals, isPrerendered = false, - routePattern + routePattern, }: CreateRequestOptions): Request { // headers are made available on the created request only if the request is for a page that will be on-demand rendered const headersObj = isPrerendered diff --git a/packages/astro/src/vite-plugin-astro-server/route.ts b/packages/astro/src/vite-plugin-astro-server/route.ts index 978de421a8..eb06846499 100644 --- a/packages/astro/src/vite-plugin-astro-server/route.ts +++ b/packages/astro/src/vite-plugin-astro-server/route.ts @@ -174,7 +174,7 @@ export async function handleRoute({ logger, clientAddress: incomingRequest.socket.remoteAddress, isPrerendered: route.prerender, - routePattern: route.component + routePattern: route.component, }); // Set user specified headers to response object.