1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-18 15:05:32 -04:00

update CSRF config

This commit is contained in:
2025-04-15 12:27:09 -04:00
parent cfe77f98d6
commit 89517ea815
4 changed files with 127 additions and 129 deletions

View File

@@ -131,7 +131,7 @@ export const getContent = async (slug: string): Promise<string | undefined> => {
],
},
})
.process(await fs.readFile(path.resolve(process.cwd(), `${POSTS_DIR}/${slug}/index.mdx`)));
.process(await fs.readFile(path.join(process.cwd(), `${POSTS_DIR}/${slug}/index.mdx`)));
// convert the parsed content to a string with "safe" HTML
return content.toString().replaceAll("<p></p>", "").trim();