소스 검색

fix static site generation with child routers

Evan Almloff 1 년 전
부모
커밋
1eb90bf43a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/static-generation/src/ssg.rs

+ 1 - 0
packages/static-generation/src/ssg.rs

@@ -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 {