Replace Bun fs calls with node-compatible module
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M src/posts.ts → src/posts.ts
@@ -18,7 +18,7 @@ taxonomies: Record<string, string[]>; }; export async function getPost(filename: string): Promise<MatterFile> { - return matter(await Bun.file(filename).text()); + return matter(await fs.readFile(filename, "utf8")); } export async function readPosts(