getRedirectStatus() — astro Function Reference
Architecture documentation for the getRedirectStatus() function in astro.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 22014c97_c453_2583_890e_012d1c7799de["getRedirectStatus()"] 3303a596_77e9_a4f6_1515_7ec93bef6e53["astro.ts"] 22014c97_c453_2583_890e_012d1c7799de -->|defined in| 3303a596_77e9_a4f6_1515_7ec93bef6e53 588be6b3_7df5_51d9_4f94_ee8db1fac57e["createRedirectsFromAstroRoutes()"] 588be6b3_7df5_51d9_4f94_ee8db1fac57e -->|calls| 22014c97_c453_2583_890e_012d1c7799de style 22014c97_c453_2583_890e_012d1c7799de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/underscore-redirects/src/astro.ts lines 12–17
function getRedirectStatus(route: IntegrationResolvedRoute): ValidRedirectStatus {
if (typeof route.redirect === 'object') {
return route.redirect.status;
}
return 301;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getRedirectStatus() do?
getRedirectStatus() is a function in the astro codebase, defined in packages/underscore-redirects/src/astro.ts.
Where is getRedirectStatus() defined?
getRedirectStatus() is defined in packages/underscore-redirects/src/astro.ts at line 12.
What calls getRedirectStatus()?
getRedirectStatus() is called by 1 function(s): createRedirectsFromAstroRoutes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free