all repos — website @ 8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89

My website

Replace Bun fs calls with node-compatible module

Alan Pearce
commit

8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89

parent

0574ab7fe285348df078b76df6dc932f176dc5c2

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M src/posts.tssrc/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(