Next.js Discord

Discord Forum

Can't load MDX with glob in Vercel deployment using dynamic routes

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
Hi, I was using glob with MDX to render case studies for my website, but ever since I added a [lang] dynamic param (src/app/[lang]/...), glob cannot find the MDX files in my Vercel deployment anymore. Everything works fine in dev, the build finishes successfully, I don't get any errors but in the deployment, it just cannot find the mdx files

0 Replies