Before you launch
- Payments: switch to live keys and create live prices (or live variants for Lemon Squeezy, live price IDs for Paddle)
- Payments: add a production webhook endpoint (
/api/stripe/webhook,/api/lemonsqueezy/webhookor/api/paddle/webhook) and set its signing secret - Email: verify your production sending domain and set
EMAIL_FROMto an address on it - Auth: generate a new
BETTER_AUTH_SECRET, setNEXT_PUBLIC_APP_URLandBETTER_AUTH_URLto the production URL, and add the production redirect URIhttps://your-domain/api/auth/callback/googleif you use Google - Storage: add a CORS rule for your production origin (GET, PUT, HEAD; header
content-type; exposeETag) and keep the bucket private - Database: use a production database with backups, and run
npx prisma db pushagainst it - AI: set
AI_GATEWAY_API_KEY(or use the Vercel OIDC token on Vercel) and keepAI_REQUIRE_AUTHon; the rate limit is per server instance - Set every variable in your host, not only in
.env
Verify
| Check | How |
|---|---|
| Sign up and verify an email | Create a real account on production; verification is required to sign in |
| Subscribe and cancel | Buy the cheapest plan with a real card, cancel it, then refund it |
| Webhook delivery | Check the delivery log in your billing dashboard; the plan only turns active from the webhook |
| Upload and download | Upload a file on the Files page and open it again |
| Chat | Send a message at /chat and upload an attachment |