Home / Function/ match() — astro Function Reference

match() — astro Function Reference

Architecture documentation for the match() function in node.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  a5be4a1b_0322_df84_edf6_05ca3b1d2e1d["match()"]
  1354a766_a33e_3a71_462c_58c895a2cb0b["NodeApp"]
  a5be4a1b_0322_df84_edf6_05ca3b1d2e1d -->|defined in| 1354a766_a33e_3a71_462c_58c895a2cb0b
  859c2d6f_02be_836d_7e05_a64bead34fc2["createRequest()"]
  a5be4a1b_0322_df84_edf6_05ca3b1d2e1d -->|calls| 859c2d6f_02be_836d_7e05_a64bead34fc2
  style a5be4a1b_0322_df84_edf6_05ca3b1d2e1d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/app/node.ts lines 29–37

	match(req: NodeRequest | Request, allowPrerenderedRoutes = false) {
		if (!(req instanceof Request)) {
			req = NodeApp.createRequest(req, {
				skipBody: true,
				allowedDomains: this.manifest.allowedDomains,
			});
		}
		return super.match(req, allowPrerenderedRoutes);
	}

Domain

Subdomains

Frequently Asked Questions

What does match() do?
match() is a function in the astro codebase, defined in packages/astro/src/core/app/node.ts.
Where is match() defined?
match() is defined in packages/astro/src/core/app/node.ts at line 29.
What does match() call?
match() calls 1 function(s): createRequest.

Analyze Your Own Codebase

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

Try Supermodel Free