Convex Production Deployment Update
Summary
The production errors on https://do.dev/dashboard/customers/overview were caused by missing Convex function deployments. The functions have now been deployed to production, but the environment variables in Vercel need to be updated to point to the correct deployments.
Deployed Convex Functions
1. Auth App Convex Functions
- Deployed to:
https://lovable-dinosaur-317.convex.cloud - Functions: clerkSync:syncClerkUser and other auth-related functions
- Status: ✅ Successfully deployed
2. Local Package Convex Functions
- Deployed to:
https://decisive-avocet-403.convex.cloud - Functions: customers:list, customers:listApiKeys and other local infrastructure functions
- Status: ✅ Successfully deployed
Required Vercel Environment Variable Updates
The following environment variables need to be updated in Vercel for the do.dev production deployment:
For Auth Functions:
NEXT_PUBLIC_CONVEX_DEPLOYMENT_AUTH=https://lovable-dinosaur-317.convex.cloud(Currently set to: https://dependable-pika-747.convex.cloud)
For Local Package Functions:
CONVEX_DEPLOYMENT_LOCAL=prod:decisive-avocet-403
NEXT_PUBLIC_CONVEX_DEPLOYMENT_LOCAL=https://decisive-avocet-403.convex.cloud(Currently set to: https://agile-cardinal-285.convex.cloud)
Steps to Update Vercel
- Go to your Vercel dashboard for the do.dev project
- Navigate to Settings → Environment Variables
- Update the above environment variables with the new values
- Redeploy the application
Testing
After updating the environment variables and redeploying:
- Visit https://do.dev/dashboard/customers/overview
- The page should now load without errors
- Check the browser console - there should be no Convex function errors
Development vs Production URLs
For reference, here are the different Convex deployments:
Development (localhost):
- Auth:
https://dependable-pika-747.convex.cloud(dev deployment) - Local:
https://agile-cardinal-285.convex.cloud(dev deployment)
Production (do.dev):
- Auth:
https://lovable-dinosaur-317.convex.cloud(prod deployment) - Local:
https://decisive-avocet-403.convex.cloud(prod deployment)
Notes
- The Convex functions are now deployed and ready for production use
- Only the environment variables need to be updated in Vercel
- No code changes are required