astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
13 lines (12 loc) • 659 B
TypeScript
import type { RenderErrorOptions } from '../app/base.js';
import type { SSRManifest } from '../app/types.js';
/**
* The error strategy used during static build / prerendering.
*
* - For 500 errors, returns the original response if present, otherwise
* throws so the build surfaces the underlying error to the developer.
* - For other errors (e.g. 404), delegates to `renderDefaultError` with
* `prerenderedErrorPageFetch` cleared (the build pipeline can't fetch
* prerendered pages the way production SSR can).
*/
export declare function renderBuildError(manifest: SSRManifest, request: Request, options: RenderErrorOptions): Promise<Response>;