In my case, I forgot to associate the variable with the project in Vercel. There you have a box that indicates that the variable is associated with XXXX project, by default it is not associated with any