mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-21 19:35:59 -04:00
proper cwd for mdx components
This commit is contained in:
+1
-1
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user