redirectIsExternal() — astro Function Reference
Architecture documentation for the redirectIsExternal() function in render.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 845c0f9c_0fb3_6374_3477_0790d24822d4["redirectIsExternal()"] 257bae1e_85a4_d9fb_5253_5efdfeba739a["render.ts"] 845c0f9c_0fb3_6374_3477_0790d24822d4 -->|defined in| 257bae1e_85a4_d9fb_5253_5efdfeba739a db301d98_2cae_ad49_5e45_32ec4a92b278["renderRedirect()"] db301d98_2cae_ad49_5e45_32ec4a92b278 -->|calls| 845c0f9c_0fb3_6374_3477_0790d24822d4 94c0ccaf_805c_68a8_d3eb_cf64e5be918a["redirectRouteGenerate()"] 94c0ccaf_805c_68a8_d3eb_cf64e5be918a -->|calls| 845c0f9c_0fb3_6374_3477_0790d24822d4 style 845c0f9c_0fb3_6374_3477_0790d24822d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/redirects/render.ts lines 5–13
export function redirectIsExternal(redirect: RedirectConfig): boolean {
if (typeof redirect === 'string') {
return redirect.startsWith('http://') || redirect.startsWith('https://');
} else {
return (
redirect.destination.startsWith('http://') || redirect.destination.startsWith('https://')
);
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does redirectIsExternal() do?
redirectIsExternal() is a function in the astro codebase, defined in packages/astro/src/core/redirects/render.ts.
Where is redirectIsExternal() defined?
redirectIsExternal() is defined in packages/astro/src/core/redirects/render.ts at line 5.
What calls redirectIsExternal()?
redirectIsExternal() is called by 2 function(s): redirectRouteGenerate, renderRedirect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free