Setting up by hand
Create the Supabase database yourself and connect it to Vercel — if you'd rather not let Vercel create it, or you already have a Supabase account.
The get-started guide lets Vercel create your Supabase database for you. If you'd rather create it yourself — or you already have a Supabase account — do this instead. It takes about 10 minutes.
1. Create the project in Supabase
In Supabase, click New project.
Name: your project's name. Database password: click Generate a password and save it somewhere safe (a password manager is ideal). Region: the one nearest you.
Under the security options, choose:
- Enable Data API: on
- Automatically expose new tables: off (your agent grants access table by table)
- Enable automatic RLS: on (an extra safety net — see Safety checks)
(Missed these? Don't worry — the kit switches both on with its first database change.)
If Supabase offers to connect a GitHub repository, skip it. Bumper Lanes applies database changes its own way, after taking a backup.
Click Create new project and wait a couple of minutes.
2. Tell your app where the database is
Your app needs two settings, called environment variables. They live in Vercel, not in your code.
In Supabase, open Project Settings → API Keys. Copy the publishable key (it starts
sb_publishable_). Then open Project Settings → Data API and copy the Project URL (it looks likehttps://abcdefghijklmnopqrst.supabase.co— not the address of the page you're on).In Vercel, open your project → Settings → Environment Variables and add:
NEXT_PUBLIC_SUPABASE_URL= the Project URLNEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY= the publishable key
Tick Production and Preview, then Save.
New settings only apply to new versions of your site: go to Deployments, click ⋮ on the latest one → Redeploy.
Open
your-site.vercel.app/status— Database: Connected ✓. If a setting is wrong,/statussays which one and what to paste instead.
The publishable key is designed to be used in a browser, so it's fine in these settings. Never
put the secret key in a NEXT_PUBLIC_ setting.