I am having similar issues as well. I have tried everything I can. Including creating a fresh repository for the project and have no luck yet. Please guys, help look into this.
project runs very well in my local machine but refuses to run in vercel. I kept getting this error for every new commit, including the new repository:
Environment Variable “MONGO_URI” references Secret “MONGO_URI”, which does not exist.
Hello Swarnava, Thank you for your swift response. took a break earlier.
yes it does. I have all my environment variable well set. I have even created a new repository entirely and created new environment variable with all the variable.
I have also created a new deployments only the last successful deploy persists, others keeps failing no matter the tweak i have made. see the image below:
This is the environment variable settings for production for the project. I really don’t understand why subsequent commits will not deploy, giving the said error.
Based on the error logs, it seems that your project is utilizing legacy secrets. It is possible that your project is using vercel.json file which has the secrets defined. Since you already added the Environment variables in the Dashboard, could you please remove any secrets from the vercel.json file and check if it resolves the issue? For more detailed information, you can refer to this guide: Configuring projects with vercel.json