deploy
Deploying Bknd to Production
Deploy Bknd applications to your preferred platform. Bknd supports serverless platforms (Vercel, AWS Lambda, Cloudflare Workers), containerized deployments (Docker), and traditional Node.js servers.
What You'll Learn
- Configure production databases (PostgreSQL, Turso)
- Set up environment variables
- Deploy to Vercel, AWS Lambda, Cloudflare Workers, or Docker
- Handle authentication and media storage in production
- Optimize for edge deployments
Production Database Setup
Choose a cloud database for production. File-based SQLite doesn't work reliably in serverless environments.
PostgreSQL (Recommended)
Use pg adapter for connection pooling or postgresJs for edge runtimes.
More from cameronapak/bknd-skills
bknd-login-flow
Use when implementing login and logout functionality in a Bknd application. Covers SDK authentication methods, REST API endpoints, React integration, session checking, and error handling.
16bknd-session-handling
Use when managing user sessions in a Bknd application. Covers JWT token lifecycle, session persistence, automatic renewal, checking auth state, invalidating sessions, and handling expiration.
15btca-bknd-repo-learn
Use btca (Better Context App) to efficiently query and learn from the bknd backend framework. Use when working with bknd for (1) Understanding data module and schema definitions, (2) Implementing authentication and authorization, (3) Setting up media file handling, (4) Configuring adapters (Node, Cloudflare, etc.), (5) Learning from bknd source code and examples, (6) Debugging bknd-specific issues
15bknd-protect-endpoint
Use when securing specific API endpoints in Bknd. Covers protecting custom HTTP triggers, plugin routes, auth middleware for Flows, checking permissions in custom endpoints, and role-based endpoint access.
15bknd-file-upload
Use when uploading files to Bknd storage. Covers MediaApi SDK methods (upload, uploadToEntity), REST endpoints, React integration with file inputs, progress tracking with XHR, browser upload patterns, and entity field attachments.
15bknd-deploy-hosting
Use when deploying a Bknd application to production hosting. Covers Cloudflare Workers/Pages, Node.js/Bun servers, Docker, Vercel, AWS Lambda, and other platforms.
14