Home / Type/ HostRouteDefinition Type — astro Architecture

HostRouteDefinition Type — astro Architecture

Architecture documentation for the HostRouteDefinition type/interface in host-route.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  4c71947c_b1c1_7e55_4095_4034a544db5d["HostRouteDefinition"]
  ad6a2143_4751_effa_9c1f_a5f673b5dd66["host-route.ts"]
  4c71947c_b1c1_7e55_4095_4034a544db5d -->|defined in| ad6a2143_4751_effa_9c1f_a5f673b5dd66
  style 4c71947c_b1c1_7e55_4095_4034a544db5d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/underscore-redirects/src/host-route.ts lines 1–14

export type HostRouteDefinition = {
	dynamic: boolean;
	input: string;
	/**
	 * An optional target
	 */
	target?: string;
	// Allows specifying a weight to the definition.
	// This allows insertion of definitions out of order but having
	// a priority once inserted.
	weight?: number;
	status: number;
	force?: boolean;
};

Frequently Asked Questions

What is the HostRouteDefinition type?
HostRouteDefinition is a type/interface in the astro codebase, defined in packages/underscore-redirects/src/host-route.ts.
Where is HostRouteDefinition defined?
HostRouteDefinition is defined in packages/underscore-redirects/src/host-route.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free