In Vercel there are two different place to add environment variables. After spending a few hours more suddenly I saw the second place. one is for team(I guess) and the other one is directly for project. when I added in the project, the problem disappeared.