Vercel Production Error Only
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
Hi, I have a Next JS app that is hosted on vercel and source controlled on Github. I have a dev branch, a staging branch and a production branch. This week I made a push of a prefectly fine working codebase from DEV > STAGING > PROD. The same exact codebase works in the previews for dev and staging, but not on the production env. It seems to be a hydration error. Literraly, the difference in the codebase is a comment: "// touch". The errors are minified and the app is complex so even removing code is not helping me find the issue. Any guidance would be greatly appreciated. Things i tried: Create a new commit from the latest bad production and remove code; Create a new commit from the latest good production and touch it with a comment; Nothing works. Thanks in advance.
1 Reply
Northeast Congo LionOP
OK, so i sorta fixed it... by redeploying and keeping the "Use Existing Build Cache" UNCHECKED. This should be the default, especially if you are working on a team and dont want to have to contact everyone about their latest contributions. But i get it that Vercel probably saves some money by not running builds everytime. There is also an env variable that forces a fresh build every time VERCEL_FORCE_NO_BUILD_CACHE which everyone should turn on.