RenderErrorOptions Type — astro Architecture
Architecture documentation for the RenderErrorOptions type/interface in base.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 775c9332_a690_1829_c698_2180774f3c3c["RenderErrorOptions"] be39cf2a_62a6_9604_4324_ee218d601bab["base.ts"] 775c9332_a690_1829_c698_2180774f3c3c -->|defined in| be39cf2a_62a6_9604_4324_ee218d601bab style 775c9332_a690_1829_c698_2180774f3c3c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/app/base.ts lines 85–100
export interface RenderErrorOptions {
locals?: App.Locals;
routeData?: RouteData;
response?: Response;
status: 404 | 500;
/**
* Whether to skip middleware while rendering the error page. Defaults to false.
*/
skipMiddleware?: boolean;
/**
* Allows passing an error to 500.astro. It will be available through `Astro.props.error`.
*/
error?: unknown;
clientAddress: string | undefined;
prerenderedErrorPageFetch: ((url: ErrorPagePath) => Promise<Response>) | undefined;
}
Defined In
Source
Frequently Asked Questions
What is the RenderErrorOptions type?
RenderErrorOptions is a type/interface in the astro codebase, defined in packages/astro/src/core/app/base.ts.
Where is RenderErrorOptions defined?
RenderErrorOptions is defined in packages/astro/src/core/app/base.ts at line 85.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free