Skip to content

Commit 6114071

Browse files
committed
feat(posts): .DS_Store 필터 추가 - 문서 자동생성 오류
1 parent 5cc23ba commit 6114071

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/shared/helpers/mdx/getPost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getAllFullSlug = () => {
1212
withFileTypes: true,
1313
recursive: true,
1414
})
15-
.filter((post) => post.isFile())
15+
.filter((post) => post.isFile() && post.name !== '.DS_Store')
1616
// _posts 이후의 경로만 추출. ex) _posts/js/object-type/docs.md -> js/object-type
1717
.map((post) => post.parentPath.slice(POST_PATH.length + 1)),
1818
),

0 commit comments

Comments
 (0)