Hello gurus,
I have pushed my NextJS to my repository after running it and making sure it is working perfectly and I can run it on my localhost and see the pages working fine in browser after I have debugged from the first push to the git repository that vercel was deploying from. After debugging and making sure everything is fine, I pushed to the repository, vercel would confirmed the push and the commit but when vercel deploy it would deploying from the old deployed cache. The build errors would contain errors I have fixed and they errors were not even in the git repository because I have pushed the error-free files.
******WHAT I HAVE TRIED
I have added an Environment Variable VERCEL_FORCE_NO_BUILD_CACHE with a value of 1 to the project setting on vercel dashboard hoping vercel would pick the new git repository files and build that but NO, vercel was building the cached deployment.
I have installed the vercel cli but i do not know how to deploy using vercel cli and force no cache.
Please how do I fixed this?