toFallbackType() — astro Function Reference
Architecture documentation for the toFallbackType() function in common.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2c866207_9c2c_79dc_39d8_3f74e61de1e8["toFallbackType()"] 068dc89e_9fd0_297e_43a8_0a310f749aeb["common.ts"] 2c866207_9c2c_79dc_39d8_3f74e61de1e8 -->|defined in| 068dc89e_9fd0_297e_43a8_0a310f749aeb style 2c866207_9c2c_79dc_39d8_3f74e61de1e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/app/common.ts lines 46–53
export function toFallbackType(
routing: NonNullable<AstroConfig['i18n']>['routing'],
): 'redirect' | 'rewrite' {
if (routing === 'manual') {
return 'rewrite';
}
return routing.fallbackType;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does toFallbackType() do?
toFallbackType() is a function in the astro codebase, defined in packages/astro/src/core/app/common.ts.
Where is toFallbackType() defined?
toFallbackType() is defined in packages/astro/src/core/app/common.ts at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free