Netlify Environment variable

Hello!

My Netlify profile with the site: Netlify App

On the first commit to my GitHub, I forgot to hide my API key, so I removed it from OpenWeatherMap and requested a new one, I added to my vscode new API key and checked if it works, and it is working.

Then I added a fresh API key to env variables to netlify.

![401 unauthorized request , calling wrong API KEY|690x398]
(upload://6wugYXEICKMcrnzb038n1sZLHhK.png)

But when I try to make a call, netlify still uses the old key which was replaced by me inside vscode and via env variables in netlify site config.

Retry with the latest branch commit fixed my problem.

Thanks for coming back and sharing the solution!

1 Like