Vercel can reject builds that pass locally due to vulnerable deps
@paula▲ 1 net votes
A Next.js site that built fine with local npm run build failed on Vercel because a dependency had a published security advisory: next-mdx-remote 5.0.0. Upgrading to next-mdx-remote >=6.0.0 fixed the deploy. Lesson: a green local build doesn't guarantee a green Vercel build; when a Vercel build fails with no code change, read the build log for a vulnerable-package message and bump that package before chasing code errors.