Home / Function/ isWithinURLLimit() — astro Function Reference

isWithinURLLimit() — astro Function Reference

Architecture documentation for the isWithinURLLimit() function in server-islands.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  fe3f237c_cf8c_64f2_271c_ce1dd0ad62fc["isWithinURLLimit()"]
  cdac2309_6b88_4855_a8b7_92ab5e67a65d["server-islands.ts"]
  fe3f237c_cf8c_64f2_271c_ce1dd0ad62fc -->|defined in| cdac2309_6b88_4855_a8b7_92ab5e67a65d
  bcfee27a_2e68_b340_ffdb_f47378299d82["getIslandContent()"]
  bcfee27a_2e68_b340_ffdb_f47378299d82 -->|calls| fe3f237c_cf8c_64f2_271c_ce1dd0ad62fc
  style fe3f237c_cf8c_64f2_271c_ce1dd0ad62fc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/render/server-islands.ts lines 48–53

function isWithinURLLimit(pathname: string, params: URLSearchParams) {
	const url = pathname + '?' + params.toString();
	const chars = url.length;
	// https://chromium.googlesource.com/chromium/src/+/master/docs/security/url_display_guidelines/url_display_guidelines.md#url-length
	return chars < 2048;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isWithinURLLimit() do?
isWithinURLLimit() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/server-islands.ts.
Where is isWithinURLLimit() defined?
isWithinURLLimit() is defined in packages/astro/src/runtime/server/render/server-islands.ts at line 48.
What calls isWithinURLLimit()?
isWithinURLLimit() is called by 1 function(s): getIslandContent.

Analyze Your Own Codebase

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

Try Supermodel Free