Home / Type/ RouteOptions Type — astro Architecture

RouteOptions Type — astro Architecture

Architecture documentation for the RouteOptions type/interface in integrations.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a3bbba3e_6d77_f1b6_0fd0_f0250664f581["RouteOptions"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb["integrations.ts"]
  a3bbba3e_6d77_f1b6_0fd0_f0250664f581 -->|defined in| 5a61a076_c3db_01bc_0201_03ec73ca05bb
  style a3bbba3e_6d77_f1b6_0fd0_f0250664f581 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/types/public/integrations.ts lines 14–27

export interface RouteOptions {
	/**
	 * The path to this route relative to the project root. The slash is normalized as forward slash
	 * across all OS.
	 * @example "src/pages/blog/[...slug].astro"
	 */
	readonly component: string;
	/**
	 * Whether this route should be prerendered. If the route has an explicit `prerender` export,
	 * the value will be passed here. Otherwise, it's undefined and will fallback to a prerender
	 * default depending on the `output` option.
	 */
	prerender?: boolean;
}

Frequently Asked Questions

What is the RouteOptions type?
RouteOptions is a type/interface in the astro codebase, defined in packages/astro/src/types/public/integrations.ts.
Where is RouteOptions defined?
RouteOptions is defined in packages/astro/src/types/public/integrations.ts at line 14.

Analyze Your Own Codebase

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

Try Supermodel Free