Home / Function/ devMatch() — astro Function Reference

devMatch() — astro Function Reference

Architecture documentation for the devMatch() function in app.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  89732b33_f6c0_7345_6fd2_4cfb1c40d1a5["devMatch()"]
  ec09edcb_7ea1_1684_bf75_6f5bf722dd9c["DevApp"]
  89732b33_f6c0_7345_6fd2_4cfb1c40d1a5 -->|defined in| ec09edcb_7ea1_1684_bf75_6f5bf722dd9c
  style 89732b33_f6c0_7345_6fd2_4cfb1c40d1a5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/app/dev/app.ts lines 48–62

	async devMatch(pathname: string): Promise<DevMatch | undefined> {
		const matchedRoute = await matchRoute(
			pathname,
			this.manifestData,
			this.pipeline as unknown as RunnablePipeline,
			this.manifest,
		);
		if (!matchedRoute) return undefined;

		this.resolvedPathname = matchedRoute.resolvedPathname;
		return {
			routeData: matchedRoute.route,
			resolvedPathname: matchedRoute.resolvedPathname,
		};
	}

Domain

Subdomains

Frequently Asked Questions

What does devMatch() do?
devMatch() is a function in the astro codebase, defined in packages/astro/src/core/app/dev/app.ts.
Where is devMatch() defined?
devMatch() is defined in packages/astro/src/core/app/dev/app.ts at line 48.

Analyze Your Own Codebase

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

Try Supermodel Free