Deployment Checklist
Finally you have reached your goal and you want to deploy, here is the deployment checklist so you don't miss-out anything important.
- Make sure you have the right security measures
- All your forms are being validated on the client and server
- Make sure you don't have any missing headers in the
next.config.ts
- Make sure you have rate limited your api endpoints
- Add your environment variables to your deployment
NEXT_PUBLIC_BACKEND_URL
ADMIN_EMAIL
AUTH_SECRET
STRIPE_KEY
STRIPE_WEBHOOK_SECRET
- etc...
- Update stripe webhook endpoint
- Update AWS SNS subscriptions / S3 cors configuration to match your deployment domain
- If you are using
AI
features make sure to set a monthly budget inOpenAI
dashboard - Push all your commits to
main
branch on a private repo - Connect your github account to a deployment website like vercel and then use your private repo
- Make sure all environment variables in
.env
and.env.local
are in your deployment environment variables - Stress test these features
- Authentication
- Create a test product
- Make a purchase
- Double check users can access your product after purchase
- Test uploading
- Test everything in your dashboard
Congratulations on making it this far, you are a beast! ⚡️