Skip to content

Latest commit

 

History

History
159 lines (128 loc) · 4 KB

File metadata and controls

159 lines (128 loc) · 4 KB

Deployment Verification Checklist ✅

Automated Setup Complete

✅ Project Setup

  • Project extracted from zip
  • Dependencies installed (384 packages)
  • Environment variables configured
  • Dev server running on port 8080
  • Preview server running on port 4173

✅ Supabase Configuration

  • Project linked: tlbodqvutqxfezgmwqmc
  • Database migrations pushed
  • Tables created successfully:
    • profiles
    • user_roles (with admin/client enum)
    • leads
    • consultations
    • voice_selections
    • agents
    • conversations
  • RLS policies enabled
  • Triggers configured

✅ Vercel Deployment

  • Initial deployment successful
  • Environment variables set for all environments:
    • Production
    • Preview
    • Development
  • Variables configured:
    • VITE_SUPABASE_PROJECT_ID
    • VITE_SUPABASE_PUBLISHABLE_KEY
    • VITE_SUPABASE_URL
  • Production redeployment with env vars
  • SPA routing configured (vercel.json)
  • Build optimization complete

✅ Documentation

  • README.md updated with deployment info
  • DEPLOYMENT_GUIDE.md created
  • SETUP_ADMIN.sql script created
  • This verification checklist

🎯 Manual Steps Required

1. Create Your First Account

  1. Visit: https://glasov-agent-bg-main.vercel.app
  2. Sign up with your email
  3. Verify email (check inbox)

2. Grant Admin Access

  1. Go to Supabase SQL Editor
  2. Run this query (replace with your email):
    INSERT INTO public.user_roles (user_id, role)
    SELECT id, 'admin'::public.app_role
    FROM auth.users
    WHERE email = 'YOUR_EMAIL@example.com'
    ON CONFLICT DO NOTHING;
  3. Refresh the app - you should now see admin features

3. Test Core Features

  • User authentication (sign up, sign in, sign out)
  • Profile management
  • Lead creation and management (admin)
  • Consultation booking
  • Voice agent selection
  • Conversation interface

4. Optional: Performance Optimization

The build is currently 630 KB (minified). Consider:

  • Code splitting for routes
  • Lazy loading heavy components
  • Image optimization
  • Progressive Web App (PWA) setup

5. Optional: Custom Domain

  1. Go to Vercel Dashboard → Domains
  2. Add your domain
  3. Configure DNS:
    • A Record: 76.76.21.21
    • CNAME for www: cname.vercel-dns.com

🔍 Health Checks

Site Accessibility

  • Homepage loads: https://glasov-agent-bg-main.vercel.app
  • Title displays: "Save My Time | Български AI Гласови Агенти"
  • All routes accessible (test after setup)
  • Mobile responsive

Database Connection

  • Supabase project active
  • Connection string valid
  • Auth working (test after signup)
  • RLS policies enforced

Environment Variables

  • Production vars encrypted and set
  • Preview vars encrypted and set
  • Development vars encrypted and set
  • No secrets in git history

🛠 Troubleshooting

If site doesn't load

cd ~/projects/glasov-agent-bg/glasov-agent-bg-main
npx vercel logs --follow

If database connection fails

  1. Check Supabase project status
  2. Verify environment variables match
  3. Check RLS policies aren't blocking requests

If builds fail

# Rebuild locally first
npm run build

# Check for errors
# If local build works, redeploy
npx vercel --prod

📊 Current Status

Deployment Date: 2026-01-15 Production URL: https://glasov-agent-bg-main.vercel.app Status: ✅ LIVE Database: ✅ CONFIGURED Environment: ✅ PRODUCTION READY

Next Action: Sign up and set admin role (see section 1 & 2 above)


🎉 Success Criteria

You'll know everything is working when:

  1. ✅ Site loads at production URL
  2. ⏳ You can sign up and receive verification email
  3. ⏳ After setting admin role, you see admin panel
  4. ⏳ You can create leads and manage consultations
  5. ⏳ Voice agent features work correctly

Current Progress: 1/5 (Site is live, awaiting user signup)