Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Dec 5, 2024
1 parent ff18b9c commit 9cda184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/src/core/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface CreateRequestOptions {
*/
isPrerendered?: boolean;

routePattern: string
routePattern: string;
}

const clientAddressSymbol = Symbol.for('astro.clientAddress');
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro-server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9cda184

Please sign in to comment.