Environment Variables
Add/update these environment variables in your convex production instance and NextJS deployment before deploying your app to production
Convex
DODO_PAYMENTS_ENVIRONMENT
Set it to live_mode in production
DODO_PAYMENTS_WEBHOOK_SECRET
Create a new production webhook handler in live mode in dodopayments dashboard and copy the secret key and set it here.
Make sure the webhook url is set to
https://[your-production-domain].convex.site/dodo-webhookSITE_URL
Update this to your actual domain name, this is used by better auth for CORS and other purposes.
GOOGLE/GITHUB CLIENT ID & SECRET
Update these to your actual client id and secret keys from your google/github developer console to enable social login, make sure the origin and callback urls are set to your domain.
Vercel
NEXT_PUBLIC_CONVEX_URL
Update this to your convex production url, you can find it in your convex dashboard. It ends with .convex.cloud.
Example: https://astute-something-507.convex.cloud
NEXT_PUBLIC_CONVEX_SITE_URL
Update this to your convex production url, It ends with .convex.site and can be found in the convex dashboard.
Example: https://astute-something-507.convex.site
CONVEX_DEPLOYMENT
Update this to your convex production deployment id, you can find it in your convex dashboard, it looks like prod:astute-something-507.
Example: prod:astute-something-507
CONVEX_DEPLOY_KEY
This key is used to deploy your changes in convex code to production, you can generate it in your convex dashboard setting of your production deployment.