createRenderContext() — astro Function Reference
Architecture documentation for the createRenderContext() function in app.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 665f578e_0fb9_ef8e_c5d0_8499da416b76["createRenderContext()"] df0b0a04_8315_c9cf_d541_013f247434eb["AstroServerApp"] 665f578e_0fb9_ef8e_c5d0_8499da416b76 -->|defined in| df0b0a04_8315_c9cf_d541_013f247434eb 5d858b84_f88b_316b_3874_cf1a5d8a7829["renderError()"] 5d858b84_f88b_316b_3874_cf1a5d8a7829 -->|calls| 665f578e_0fb9_ef8e_c5d0_8499da416b76 style 665f578e_0fb9_ef8e_c5d0_8499da416b76 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/vite-plugin-app/app.ts lines 112–118
async createRenderContext(payload: CreateRenderContext): Promise<RenderContext> {
this.currentRenderContext = await super.createRenderContext({
...payload,
pathname: this.resolvedPathname ?? payload.pathname,
});
return this.currentRenderContext;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createRenderContext() do?
createRenderContext() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-app/app.ts.
Where is createRenderContext() defined?
createRenderContext() is defined in packages/astro/src/vite-plugin-app/app.ts at line 112.
What calls createRenderContext()?
createRenderContext() is called by 1 function(s): renderError.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free