Passing props or accessing searchParams in an mdx file?
Answered
Boreal Chickadee posted this in #help-forum
Boreal ChickadeeOP
I currently render my mdx files via:
Is there a way I can access searchParams in an mdx file or a child of an mdx file, in a server component?
const { default: Content } = await import(`../../posts/${post._meta.filePath}`);
Is there a way I can access searchParams in an mdx file or a child of an mdx file, in a server component?
1 Reply
Boreal ChickadeeOP
oh I can't because its static. hmm
Answer