Next js build success locally, but throws errors on vercel

I'm not using useContext, nor useSearchParams nor have modified the error pages.
Solution:
in local, if you run next buidl, the NODE_ENV is not set to production, thats why i was not seeing the erros
Jump to solution
2 Replies
Huilen
HuilenOP9mo ago
these errors dont occour on local when i run
bun run build && bun run start
bun run build && bun run start
fixed
Solution
Huilen
Huilen9mo ago
in local, if you run next buidl, the NODE_ENV is not set to production, thats why i was not seeing the erros

Did you find this page helpful?