Feature Proposal: Serverless Deployment Platform for Next.js on aaPanel
Hello aaPanel Team,
I would like to propose a feature that could significantly enhance aaPanel’s ecosystem: a built-in serverless deployment platform for modern web frameworks such as Next.js.
Many developers today deploy React/Next.js applications using platforms like Vercel or AWS Amplify. If aaPanel could provide similar capabilities in a self-hosted environment, it would become a powerful alternative for developers who want full control over their infrastructure.
Below are key features that could make this possible:
1. Git-Based Continuous Deployment
- Connect repositories from GitHub or GitLab
- Automatic build and deployment on every push
- Branch-based deployment (production, staging, preview)
2. Next.js Native Build Support
- Automatic detection of Next.js projects
- Support for
next build and next start
- Optimized build pipeline for SSR, ISR, and static pages
3. Serverless Function Runtime
- Automatic conversion of API routes (
/api/*) into serverless functions
- Isolated runtime environment for functions
- Scalable request handling
4. Edge Functions / Middleware Support
- Deploy Next.js middleware at the edge
- Low-latency execution for authentication, routing, and A/B testing
5. Automatic SSL & Domain Management
- One-click custom domain connection
- Automatic SSL via Let's Encrypt
- Easy DNS integration
6. Build Environment Configuration
- Environment variables for production and preview environments
- Secrets management
- Build-time configuration
7. Preview Deployments
- Automatic preview deployment for pull requests
- Unique preview URL for testing before merging
8. Incremental Static Regeneration (ISR) Support
- Native support for ISR revalidation
- Smart cache invalidation
9. Global CDN Integration
- Static assets served via CDN
- Automatic caching optimization
10. Logs and Observability
- Real-time build logs
- Serverless function logs
- Error tracking and request monitoring
11. Rollback & Version History
- Ability to instantly rollback to previous deployments
- Deployment history dashboard
12. Simple Dashboard Integration
- Manage deployments directly from aaPanel UI
- View builds, logs, environment variables, and domains
With these capabilities, aaPanel could become a self-hosted alternative to Vercel for deploying modern React/Next.js applications while keeping full control over infrastructure.
I believe many developers running their own servers would greatly benefit from this feature.
Thank you for considering this proposal.