proper cwd for mdx components

This commit is contained in:
2022-01-17 11:13:13 -05:00
parent 415e8d6bc4
commit 2ef5d06c38
19 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ export const getNote = async (slug: string): Promise<NoteType> => {
const { frontMatter, content } = getNoteData(slug);
const { code: mdxSource } = await bundleMDX({
source: content,
cwd: process.cwd(),
cwd: path.join(process.cwd(), NOTES_DIR),
xdmOptions: (options) => {
options.remarkPlugins = [...(options.remarkPlugins ?? []), [remarkGfm, { singleTilde: false }]];
options.rehypePlugins = [