t3dotgg/t3gallery

Vercel - ❌ Invalid environment variables

Opened this issue · 1 comments

Hi getting error as ❌ Invalid environment variables, even though the value is set in settings.

Screenshot 2024-05-16 at 10 54 25 PM Screenshot 2024-05-16 at 10 56 02 PM

View from 26:20 in the YouTube video: https://youtu.be/d5x0JCZbAJs?si=ULJ07CJXjVqvghVs&t=1580

The pinned comment on YouTube also says:

MAKE SURE YOU USE THE DEFAULT PREFIX WHEN SETTING UP VERCEL POSTGRES

So just grab the Environment Variables from the ".env.local" tab and paste them in your Project Settings.
Then do a search and replace in your code DATABASE_URL --> POSTGRES_URL.