mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
ff18b9c185
commit
9cda184bec
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue