Home / Type/ CreateRenderContext Type — astro Architecture

CreateRenderContext Type — astro Architecture

Architecture documentation for the CreateRenderContext type/interface in render-context.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  97d38c12_213b_ba0a_2117_293997cf627f["CreateRenderContext"]
  26670781_0748_a2a7_7105_5e3a47a89b06["render-context.ts"]
  97d38c12_213b_ba0a_2117_293997cf627f -->|defined in| 26670781_0748_a2a7_7105_5e3a47a89b06
  style 97d38c12_213b_ba0a_2117_293997cf627f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/render-context.ts lines 47–62

export type CreateRenderContext = Pick<
	RenderContext,
	'pathname' | 'pipeline' | 'request' | 'routeData' | 'clientAddress'
> &
	Partial<
		Pick<
			RenderContext,
			| 'locals'
			| 'status'
			| 'props'
			| 'partial'
			| 'actions'
			| 'shouldInjectCspMetaTags'
			| 'skipMiddleware'
		>
	>;

Frequently Asked Questions

What is the CreateRenderContext type?
CreateRenderContext is a type/interface in the astro codebase, defined in packages/astro/src/core/render-context.ts.
Where is CreateRenderContext defined?
CreateRenderContext is defined in packages/astro/src/core/render-context.ts at line 47.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free