Next.js Discord

Discord Forum

Mdx dynamic import file not work

Unanswered
Snowshoe posted this in #help-forum
Open in Discord
SnowshoeOP
I tried this it works.
import(`@/content/hello-blog.mdx`)


but with this, does not works, is there alternatives to this? Which it will automatic get the contents inside the file dynamically.

import(`@/content/${id}.mdx`)

0 Replies