fix: really fixed rebuild from filesystem

This commit is contained in:
2026-02-16 10:30:06 +01:00
parent bd964fb284
commit 1ecaae3dbd
3 changed files with 267 additions and 54 deletions

View File

@@ -8,7 +8,6 @@ import matter from 'gray-matter';
export interface PostFileData {
id: string;
projectId?: string;
title: string;
slug: string;
excerpt?: string;
@@ -24,7 +23,6 @@ export interface PostFileData {
interface PostFileMetadata {
id: string;
projectId?: string;
title: string;
slug: string;
excerpt?: string;
@@ -58,7 +56,6 @@ export async function readPostFile(filePath: string): Promise<PostFileData | nul
return {
id: metadata.id,
projectId: metadata.projectId,
title: metadata.title,
slug: metadata.slug,
excerpt: metadata.excerpt,