validateDynamicRouteModule() — astro Function Reference
Architecture documentation for the validateDynamicRouteModule() function in validation.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD e0e7f3ee_9ecd_59b4_1da6_7b35b89b66d7["validateDynamicRouteModule()"] 026c8980_c8fc_05c8_19cb_d7abee54a53f["validation.ts"] e0e7f3ee_9ecd_59b4_1da6_7b35b89b66d7 -->|defined in| 026c8980_c8fc_05c8_19cb_d7abee54a53f style e0e7f3ee_9ecd_59b4_1da6_7b35b89b66d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/routing/validation.ts lines 22–38
export function validateDynamicRouteModule(
mod: ComponentInstance,
{
ssr,
route,
}: {
ssr: boolean;
route: RouteData;
},
) {
if ((!ssr || route.prerender) && !mod.getStaticPaths) {
throw new AstroError({
...AstroErrorData.GetStaticPathsRequired,
location: { file: route.component },
});
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does validateDynamicRouteModule() do?
validateDynamicRouteModule() is a function in the astro codebase, defined in packages/astro/src/core/routing/validation.ts.
Where is validateDynamicRouteModule() defined?
validateDynamicRouteModule() is defined in packages/astro/src/core/routing/validation.ts at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free