Target Domain: dinacosmetic.store
The PostgreSQL Connection String (Database URL) is the "master key" for your database. While our Next.js app primarily uses the Supabase API URL and Anon Key, this string is required for direct database management and Vercel environment parity.
- Go to your Supabase Dashboard.
- Click the Project (e.g.,
qvcxustdtpphagloissl). - Click the Settings (Gear Icon βοΈ) in the bottom-left sidebar.
- Click Database in the settings menu.
- Scroll down to the Connection String section.
- Select the Transaction tab (this is recommended for Serverless/Vercel).
- Copy the URL. It will look like this:
postgresql://postgres:[YOUR-PASSWORD]@aws-0-us-west-1.pooler.supabase.com:6543/postgres?pgbouncer=true
Important
Change [YOUR-PASSWORD] to the actual password you set when you created the Supabase project.
- Go to your Vercel Project Settings.
- Navigate to Environment Variables.
- Create a new variable:
- Key:
DATABASE_URL - Value: Paste the string from Step 1.
- Key:
- Ensure it is available in Production, Preview, and Development.
- Vercel Deployments: Keeps your database connection robust under high traffic.
- External Tools: Use this string to connect with tools like DBeaver, TablePlus, or pgAdmin for bulk data editing.
- Local Migrations: If you run
supabase db pushor similar commands from your local machine, this URL allows the CLI to "talk" to your live server.
If you lose your database password, you can Reset Database Password in the same Settings > Database screen where you found the connection string.