From 8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Apr 2024 21:55:17 +0200 Subject: Replace Bun fs calls with node-compatible module --- src/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/posts.ts') diff --git a/src/posts.ts b/src/posts.ts index c727e12..5276c6c 100644 --- a/src/posts.ts +++ b/src/posts.ts @@ -18,7 +18,7 @@ export type Post = { }; export async function getPost(filename: string): Promise { - return matter(await Bun.file(filename).text()); + return matter(await fs.readFile(filename, "utf8")); } export async function readPosts( -- cgit 1.4.1