Deployment Guide
Learn how to deploy your ShipKit application to production
Deployment Guide
This guide will walk you through deploying your ShipKit application to production. We'll cover best practices, monitoring, and scaling considerations.
Prerequisites
Before you begin, make sure you have:
- Basic Next.js knowledge
- Git basics understanding
- Node.js installed
- Access to a deployment platform (Vercel, AWS, etc.)
Deployment Options
ShipKit supports multiple deployment options:
1. Vercel (Recommended)
The easiest way to deploy your ShipKit application:
2. Docker
For containerized deployments:
3. Traditional Hosting
For traditional Node.js hosting:
Environment Setup
- Create a
.env.production
file:
- Configure your deployment platform with these environment variables
Production Checklist
Before deploying to production:
- [ ] Run production build locally
- [ ] Test all environment variables
- [ ] Configure proper security headers
- [ ] Set up monitoring and logging
- [ ] Configure proper caching
- [ ] Set up proper database indexes
- [ ] Configure rate limiting
- [ ] Set up error tracking
Monitoring and Logging
ShipKit comes with built-in monitoring support:
Scaling Considerations
Database Scaling
- Use connection pooling
- Implement proper indexes
- Consider read replicas
- Set up proper backups
Application Scaling
- Use proper caching strategies
- Implement rate limiting
- Consider serverless functions
- Use CDN for static assets
Security Best Practices
- Enable security headers:
- Configure CORS properly
- Implement rate limiting
- Use secure session configuration
- Enable proper error handling
Troubleshooting
Common deployment issues and solutions:
Build Failures
Database Connection Issues
Next Steps
After deployment:
- Set up continuous integration
- Configure automated testing
- Implement proper backup strategies
- Set up alerting
- Monitor performance