Home / Function/ isPrerenderRequest() — astro Function Reference

isPrerenderRequest() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/integrations/cloudflare/src/utils/prerender.ts lines 36–39

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free