t3dotgg / t3gallery

https://t3gallery.vercel.app
237 stars 48 forks source link

Vercel - ❌ Invalid environment variables #7

Open A-Pradeep opened 4 months ago

A-Pradeep commented 4 months ago

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
lassestilvang commented 1 month ago

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.