Home / Function/ hasAssetPropagationFlag() — astro Function Reference

hasAssetPropagationFlag() — astro Function Reference

Architecture documentation for the hasAssetPropagationFlag() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  9149bac7_5a66_5f75_c437_cd25f99cbb27["hasAssetPropagationFlag()"]
  7a09e708_c090_71c0_8138_7343699b1865["utils.ts"]
  9149bac7_5a66_5f75_c437_cd25f99cbb27 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865
  style 9149bac7_5a66_5f75_c437_cd25f99cbb27 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/utils.ts lines 857–863

export function hasAssetPropagationFlag(id: string): boolean {
	try {
		return new URL(id, 'file://').searchParams.has(PROPAGATED_ASSET_FLAG);
	} catch {
		return false;
	}
}

Subdomains

Frequently Asked Questions

What does hasAssetPropagationFlag() do?
hasAssetPropagationFlag() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is hasAssetPropagationFlag() defined?
hasAssetPropagationFlag() is defined in packages/astro/src/content/utils.ts at line 857.

Analyze Your Own Codebase

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

Try Supermodel Free