mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-31 09:46:22 -04:00
update CSRF config
This commit is contained in:
4 files changed
+127
-129
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user