Home / Function/ isStaticPathsRequest() — astro Function Reference

isStaticPathsRequest() — astro Function Reference

Architecture documentation for the isStaticPathsRequest() function in prerender.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  4d5b13c0_9bc8_8816_cb7f_eab11af8de65["isStaticPathsRequest()"]
  48b50da0_daf1_dfed_c56f_65e6f20889c9["prerender.ts"]
  4d5b13c0_9bc8_8816_cb7f_eab11af8de65 -->|defined in| 48b50da0_daf1_dfed_c56f_65e6f20889c9
  style 4d5b13c0_9bc8_8816_cb7f_eab11af8de65 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/cloudflare/src/utils/prerender.ts lines 27–30

export function isStaticPathsRequest(request: Request): boolean {
	const { pathname } = new URL(request.url);
	return pathname === STATIC_PATHS_ENDPOINT && request.method === 'POST';
}

Domain

Subdomains

Frequently Asked Questions

What does isStaticPathsRequest() do?
isStaticPathsRequest() is a function in the astro codebase, defined in packages/integrations/cloudflare/src/utils/prerender.ts.
Where is isStaticPathsRequest() defined?
isStaticPathsRequest() is defined in packages/integrations/cloudflare/src/utils/prerender.ts at line 27.

Analyze Your Own Codebase

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

Try Supermodel Free