fix static site generation with child routers

This commit is contained in:
Evan Almloff committed 2024-05-23 12:32:39 -05:00
1 parent 9f670e1eb0
commit 1eb90bf43a
1 file changed
+1
+1
View File
@@ -44,6 +44,7 @@ pub async fn generate_static_site(
for route in flat_site_map {
let Some(static_route) = route
.iter()
.filter(|s| s.to_child().is_none())
.map(SegmentType::to_static)
.collect::<Option<Vec<_>>>()
else {