[ci] format

This commit is contained in:
matthewp 2022-07-22 20:32:12 +00:00 committed by fredkbot
parent 0cc6ede362
commit c17efc1ad9
4 changed files with 25 additions and 11 deletions

View file

@ -93,7 +93,12 @@ export class App {
if (fiveHundredRouteData) {
mod = this.#manifest.pageMap.get(fiveHundredRouteData.component)!;
try {
let fiveHundredResponse = await this.#renderPage(request, fiveHundredRouteData, mod, 500);
let fiveHundredResponse = await this.#renderPage(
request,
fiveHundredRouteData,
mod,
500
);
return fiveHundredResponse;
} catch {}
}
@ -159,7 +164,7 @@ export class App {
ssr: true,
request,
streaming: this.#streaming,
status
status,
});
return response;
@ -188,7 +193,7 @@ export class App {
route: routeData,
routeCache: this.#routeCache,
ssr: true,
status
status,
});
if (result.type === 'response') {

View file

@ -5,7 +5,16 @@ import { getParamsAndProps, GetParamsAndPropsError } from '../render/core.js';
export type EndpointOptions = Pick<
RenderOptions,
'logging' | 'origin' | 'request' | 'route' | 'routeCache' | 'pathname' | 'route' | 'site' | 'ssr' | 'status'
| 'logging'
| 'origin'
| 'request'
| 'route'
| 'routeCache'
| 'pathname'
| 'route'
| 'site'
| 'ssr'
| 'status'
>;
type EndpointCallResult =

View file

@ -108,7 +108,7 @@ export async function render(opts: RenderOptions): Promise<Response> {
site,
ssr,
streaming,
status = 200
status = 200,
} = opts;
const paramsAndPropsRes = await getParamsAndProps({
@ -150,7 +150,7 @@ export async function render(opts: RenderOptions): Promise<Response> {
scripts,
ssr,
streaming,
status
status,
});
// Support `export const components` for `MDX` pages