Hi Vercel Community,
I’m encountering an issue where my application works fine locally (both with Next.js build and Vercel build), but fails in the production deployment on Vercel.
Problem Overview:
- The build process completes successfully when running locally using
next buildandvercel build. - The same build works fine in the local environment, but once deployed to Vercel, the build fails.
- There is no clear error message in the Vercel build logs, which makes it difficult to pinpoint the exact cause of the issue.
Behavior in Production:
- The application is deployed and accessible, but certain functionality fails to work as expected.
- In particular, we are noticing issues related to downloading functionality, but we're not sure if the problem is specifically with that or something else in the deployment.
- The Vercel production logs show the following error message:

What We’ve Tried:
- Local Build Success: We’ve tested the build process locally using
next buildandvercel build, and both work without issues. - Vercel Logs: The Vercel logs don’t provide any specific error messages that could help identify what’s going wrong.
- Environment Differences: We’ve ensured that the client-side environment (e.g., access to
documentandwindow) is properly checked, but the issue persists in production.
Repository:
You can find the repository here: GitHub Repo URL
Request for Help:
Has anyone experienced a similar issue where the build works locally but fails in Vercel production without clear errors in the logs? Any guidance or suggestions on how to debug or resolve this would be greatly appreciated.
Thank you!

