mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
306c9f9a9a
commit
d14d967b5f
5 changed files with 11 additions and 11 deletions
|
@ -508,7 +508,7 @@ export class experimental_AstroContainer {
|
|||
pathname: url.pathname,
|
||||
locals: options?.locals ?? {},
|
||||
partial: options?.partial ?? true,
|
||||
clientAddress: ''
|
||||
clientAddress: '',
|
||||
});
|
||||
if (options.params) {
|
||||
renderContext.params = options.params;
|
||||
|
|
|
@ -286,7 +286,7 @@ export class App {
|
|||
request,
|
||||
routeData,
|
||||
status: defaultStatus,
|
||||
clientAddress
|
||||
clientAddress,
|
||||
});
|
||||
response = await renderContext.render(await mod.page());
|
||||
} catch (err: any) {
|
||||
|
@ -305,7 +305,7 @@ export class App {
|
|||
// We don't have an error to report here. Passing null means we pass nothing intentionally
|
||||
// while undefined means there's no error
|
||||
error: response.status === 500 ? null : undefined,
|
||||
clientAddress
|
||||
clientAddress,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -387,7 +387,7 @@ export class App {
|
|||
routeData: errorRouteData,
|
||||
status,
|
||||
props: { error },
|
||||
clientAddress
|
||||
clientAddress,
|
||||
});
|
||||
const response = await renderContext.render(await mod.page());
|
||||
return this.#mergeResponses(response, originalResponse);
|
||||
|
@ -399,7 +399,7 @@ export class App {
|
|||
status,
|
||||
response: originalResponse,
|
||||
skipMiddleware: true,
|
||||
clientAddress
|
||||
clientAddress,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -444,7 +444,7 @@ async function generatePath(
|
|||
pathname: pathname,
|
||||
request,
|
||||
routeData: route,
|
||||
clientAddress: undefined
|
||||
clientAddress: undefined,
|
||||
});
|
||||
|
||||
let body: string | Uint8Array;
|
||||
|
|
|
@ -190,7 +190,7 @@ export async function handleRoute({
|
|||
middleware: isDefaultPrerendered404(matchedRoute.route) ? undefined : middleware,
|
||||
request,
|
||||
routeData: route,
|
||||
clientAddress: incomingRequest.socket.remoteAddress
|
||||
clientAddress: incomingRequest.socket.remoteAddress,
|
||||
});
|
||||
|
||||
let response;
|
||||
|
@ -248,7 +248,7 @@ export async function handleRoute({
|
|||
middleware: isDefaultPrerendered404(fourOhFourRoute.route) ? undefined : middleware,
|
||||
request,
|
||||
routeData: fourOhFourRoute.route,
|
||||
clientAddress: incomingRequest.socket.remoteAddress
|
||||
clientAddress: incomingRequest.socket.remoteAddress,
|
||||
});
|
||||
response = await renderContext.render(fourOhFourRoute.preloadedComponent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue