This guide covers the environment variables needed to deploy Uplink to Vercel with your 3 configured domains:
- meetra.live
- uplink.neopanda.tech
- uplink-brocode.vercel.app (default Vercel domain)
Type: Public (Frontend & Backend)
Source: Your Supabase project dashboard
Location: Supabase > Project Settings > API > Project URL
Example:
https://nmpnefwcziwjkibquvey.supabase.co
Steps to get it:
- Go to supabase.com
- Open your Uplink project
- Click "Settings" → "API"
- Copy the "Project URL" value
Type: Public (Frontend & Backend)
Source: Your Supabase project dashboard
Location: Supabase > Project Settings > API > Anon Public Key
Example:
sb_publishable_KMMYBgDp_71D7zcykdoHlg_c0PERWt5
Steps to get it:
- Go to supabase.com
- Open your Uplink project
- Click "Settings" → "API"
- Copy the "Anon Public" key (starts with
sb_publishable_)
Type: Public (Frontend & Backend)
Purpose: Base URL for shortened links redirect
Important: Must match your redirect domain exactly
For Each Domain:
https://meetra.live
https://uplink.neopanda.tech
https://uplink-brocode.vercel.app
How it's used:
- User creates short link → stored in database
- Shortened URL format:
{NEXT_PUBLIC_SHORT_URL_BASE}/{short_code} - Example:
https://meetra.live/abc123def
- Must be HTTPS (no http://)
- Must NOT have trailing slash: ❌
https://meetra.live/✅https://meetra.live - If you change this value, previously shortened links may break
- Should be the primary/main domain users will use
-
Connect to Vercel:
- Go to vercel.com
- Click "Add New Project"
- Select your GitHub repository:
BroCode501/uplink - Choose framework: Next.js
-
Configure Environment Variables:
- In Vercel project settings → "Environment Variables"
- Add these three variables:
Variable Value Scope NEXT_PUBLIC_SUPABASE_URLhttps://nmpnefwcziwjkibquvey.supabase.coProduction, Preview, Development NEXT_PUBLIC_SUPABASE_ANON_KEYsb_publishable_KMMYBgDp_71D7zcykdoHlg_c0PERWt5Production, Preview, Development NEXT_PUBLIC_SHORT_URL_BASEhttps://meetra.liveProduction, Preview, Development -
Add Custom Domains:
- Go to Vercel project → "Settings" → "Domains"
- Add each domain:
meetra.liveuplink.neopanda.tech
- Point DNS records to Vercel nameservers or CNAME
-
Deploy:
- Click "Deploy"
- Wait for build to complete
- Test on all three domains
- ✅
NEXT_PUBLIC_SUPABASE_URL- From Supabase - ✅
NEXT_PUBLIC_SUPABASE_ANON_KEY- From Supabase - ✅
NEXT_PUBLIC_SHORT_URL_BASE- Your primary domain
- ℹ️
NODE_ENV- Automatically set by Vercel (production/preview/development) - ℹ️
VERCEL- Set to "1" by Vercel automatically - ℹ️
VERCEL_ENV- Set by Vercel automatically
Problem: Links work on localhost but not on Vercel
Cause: NEXT_PUBLIC_SHORT_URL_BASE doesn't match your domain
Solution:
- Check Vercel deployment domain
- Update
NEXT_PUBLIC_SHORT_URL_BASEto match - Redeploy
Problem: "Failed to initialize Supabase client"
Cause: Wrong or missing Supabase credentials
Solution:
- Verify
NEXT_PUBLIC_SUPABASE_URLis correct (no trailing slash) - Verify
NEXT_PUBLIC_SUPABASE_ANON_KEYstarts withsb_publishable_ - Check Supabase project is active
- Redeploy
Problem: 404 when creating links or viewing dashboard
Cause: SQL schema not run in Supabase
Solution:
- Open Supabase → SQL Editor
- Create new query
- Copy entire contents of
sql-schema.sql - Paste and execute
- Check tables created:
short_urls,url_clicks
Problem: Requests blocked from certain domains
Solution:
- All domains point to same Vercel project (no CORS needed)
- Supabase automatically allows requests from Vercel
Use NEXT_PUBLIC_SHORT_URL_BASE = https://meetra.live
- One short URL format across all services
- Simpler analytics and tracking
- Professional appearance
NEXT_PUBLIC_SUPABASE_URL=https://nmpnefwcziwjkibquvey.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=sb_publishable_KMMYBgDp_71D7zcykdoHlg_c0PERWt5
NEXT_PUBLIC_SHORT_URL_BASE=https://meetra.liveDifferent Vercel projects for each domain with different NEXT_PUBLIC_SHORT_URL_BASE
Project 1 (meetra.live):
NEXT_PUBLIC_SHORT_URL_BASE=https://meetra.live
Project 2 (uplink.neopanda.tech):
NEXT_PUBLIC_SHORT_URL_BASE=https://uplink.neopanda.tech
Project 3 (uplink-brocode.vercel.app):
NEXT_PUBLIC_SHORT_URL_BASE=https://uplink-brocode.vercel.app
- Go to your Vercel project
- Click "Settings" in top menu
- Select "Environment Variables" from sidebar
- Click "Add New" button
- Fill in:
- Name:
NEXT_PUBLIC_SUPABASE_URL - Value:
https://nmpnefwcziwjkibquvey.supabase.co - Environments: Check all (Production, Preview, Development)
- Name:
- Repeat for other two variables
- Click "Save"
- Redeploy for changes to take effect
After updating environment variables:
- Go to Vercel project → "Deployments"
- Find latest deployment
- Click three dots → "Redeploy"
- OR push new commit to trigger automatic redeploy
- Wait for build to complete
- Test at each domain
Keep your local .env.local file synchronized:
NEXT_PUBLIC_SUPABASE_URL=https://nmpnefwcziwjkibquvey.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=sb_publishable_KMMYBgDp_71D7zcykdoHlg_c0PERWt5
NEXT_PUBLIC_SHORT_URL_BASE=http://localhost:3000| Variable | Local Dev | Vercel |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL |
https://nmpnefwcziwjkibquvey.supabase.co |
https://nmpnefwcziwjkibquvey.supabase.co |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
sb_publishable_KMMYBgDp_71D7zcykdoHlg_c0PERWt5 |
sb_publishable_KMMYBgDp_71D7zcykdoHlg_c0PERWt5 |
NEXT_PUBLIC_SHORT_URL_BASE |
http://localhost:3000 |
https://meetra.live (or your chosen domain) |
- ✅ Ensure Supabase database is created and schema is loaded
- ✅ Get Supabase URL and Anon Key
- ✅ Connect GitHub repo to Vercel
- ✅ Set environment variables in Vercel
- ✅ Add custom domains in Vercel
- ✅ Deploy
- ✅ Test shortened links on each domain
- ✅ Test authentication and dashboard
- ✅ Monitor Vercel analytics
Need Help?
- Supabase: https://supabase.com/docs
- Vercel: https://vercel.com/docs
- Next.js: https://nextjs.org/docs