Home / Function/ getRedirectStatus() — astro Function Reference

getRedirectStatus() — astro Function Reference

Architecture documentation for the getRedirectStatus() function in redirects.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e9f482b0_e88f_6947_a58f_565e65174d77["getRedirectStatus()"]
  2eae0c6b_820a_2609_b99a_dfcd5eb248a7["redirects.ts"]
  e9f482b0_e88f_6947_a58f_565e65174d77 -->|defined in| 2eae0c6b_820a_2609_b99a_dfcd5eb248a7
  9874b4e1_03ae_4293_d9dd_aa209a38691f["getRedirects()"]
  9874b4e1_03ae_4293_d9dd_aa209a38691f -->|calls| e9f482b0_e88f_6947_a58f_565e65174d77
  style e9f482b0_e88f_6947_a58f_565e65174d77 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/vercel/src/lib/redirects.ts lines 104–109

function getRedirectStatus(route: IntegrationResolvedRoute): number {
	if (typeof route.redirect === 'object') {
		return route.redirect.status;
	}
	return 301;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getRedirectStatus() do?
getRedirectStatus() is a function in the astro codebase, defined in packages/integrations/vercel/src/lib/redirects.ts.
Where is getRedirectStatus() defined?
getRedirectStatus() is defined in packages/integrations/vercel/src/lib/redirects.ts at line 104.
What calls getRedirectStatus()?
getRedirectStatus() is called by 1 function(s): getRedirects.

Analyze Your Own Codebase

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

Try Supermodel Free