diff options
author | Alan Pearce | 2024-04-01 21:55:17 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-01 21:55:17 +0200 |
commit | 8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89 (patch) | |
tree | 9c78a701e3b8b781cb21cc1198099b6e17b6f82a /src/posts.ts | |
parent | 0574ab7fe285348df078b76df6dc932f176dc5c2 (diff) | |
download | website-8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89.tar.lz website-8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89.tar.zst website-8e6d711ddb7d1e5ae623d6161c76f372b6c0cc89.zip |
Replace Bun fs calls with node-compatible module
Diffstat (limited to 'src/posts.ts')
-rw-r--r-- | src/posts.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<MatterFile> { - return matter(await Bun.file(filename).text()); + return matter(await fs.readFile(filename, "utf8")); } export async function readPosts( |