Next.js Discord

Discord Forum

Passing props or accessing searchParams in an mdx file?

Answered
Boreal Chickadee posted this in #help-forum
Open in Discord
Avatar
Boreal ChickadeeOP
I currently render my mdx files via:

  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?
Answered by Boreal Chickadee
oh I can't because its static. hmm
View full answer

1 Reply

Avatar
Boreal ChickadeeOP
oh I can't because its static. hmm
Answer