If you are working with ai-sdk, you will likely have your environment file named as
.env.local
which Vercel can't read. I renamed it to
.env