diegosouzapw/awesome-omni-skill/bknd-deploy-hosting
Claude Code and agent skill by diegosouzapw/awesome-omni-skill
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when deploying a Bknd application to production hosting. Covers Cloudflare Workers/Pages, Node.js/Bun servers, Docker, Vercel, AWS Lambda, and other platforms.
Install
npx vskill@latest install diegosouzapw/awesome-omni-skill/bknd-deploy-hostingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as diegosouzapw/awesome-omni-skill/bknd-deploy-hosting.
Deploy to Hosting
Deploy your Bknd application to various hosting platforms.
Prerequisites
- Working Bknd application locally
- Schema defined and tested
- Database provisioned (see
bknd-database-provision) - Environment variables prepared (see
bknd-env-config)
When to Use UI Mode
- Cloudflare/Vercel dashboards for environment variables
- Platform-specific deployment settings
- Viewing deployment logs
When to Use Code Mode
- All deployment configuration and commands
- Adapter setup for target platform
- CI/CD pipeline configuration
Platform Selection Guide
| Platform | Best For | Database Options | Cold Start | |
|---|---|---|---|---|
| Cloudflare Workers | Edge, global low-latency | D1, Turso | ~0ms | |
| Cloudflare Pages | Static + API | D1, Turso | ~0ms | |
| Vercel | Next.js apps | Turso, Neon | ~200ms | |
| Node.js/Bun VPS | Full control, dedicated | Any | N/A | |
| Docker | Containerized, portable | Any | N/A | |
| AWS Lambda | Serverless, pay-per-use | Turso, RDS | ~500ms |
Code Approach
Cloudflare Workers
Step 1: Install Wrangler
Step 2: Create `wrangler.toml`
Step 3: Configure Adapter
Step 4: Create D1 Database
Step 5: Set Secrets
Step 6: Deploy
Cloudflare Pages (with Functions)
Step 1: Create `functions/api/[[bknd]].ts`
Step 2: Configure Pages
In Cloudflare dashboard:
- Connect your git repository
- Set build command (if any)
- Add D1 binding under Settings > Functions > D1 Database Bindings
- Add environment variables under Settings > Environment Variables
Node.js / Bun (VPS)
Step 1: Create Production Entry
Step 2: Set Environment Variables
Step 3: Run with Process Manager
Docker
Step 1: Create `Dockerfile`
Step 2: Create `docker-compose.yml`
Step 3: Deploy
Vercel (Next.js)
Step 1: Create API Route
Step 2: Create `bknd.config.ts`
Step 3: Set Vercel Environment Variables
In Vercel dashboard or CLI:
Step 4: Deploy
AWS Lambda
Step 1: Install Dependencies
Step 2: Create `handler.ts`
Step 3: Create `serverless.yml`
Step 4: Deploy
Pre-Deployment Checklist
Environment Variables (All Platforms)
| Variable | Required | Description | |
|---|---|---|---|
DB_URL | Yes | Database connection URL | |
DB_TOKEN | Depends | Auth token (Turso/LibSQL) | |
JWT_SECRET | Yes | Min 32 chars for security | |
PORT | No | Server port (default: 3000) |
Common Pitfalls
"Module not found" for Native SQLite
Problem: better-sqlite3 not available in serverless
Fix: Use LibSQL/Turso instead of file-based SQLite:
"JWT_SECRET required" Error
Problem: Auth fails in production
Fix: Set JWT_SECRET environment variable:
Cold Start Timeouts (Lambda)
Problem: First request times out
Fix:
- Use lighter database (Turso over RDS)
- Reduce bundle size
- Enable provisioned concurrency for critical functions
D1 Binding Not Found
Problem: env.DB is undefined
Fix: Check wrangler.toml D1 binding:
Media Uploads Fail in Serverless
Problem: Local storage doesn't work in serverless
Fix: Use cloud storage adapter:
CORS Errors
Problem: Frontend can't access API
Fix: Configure CORS in your adapter:
Deployment Commands Reference
DOs and DON'Ts
DO:
- Set
isProduction: truein production config - Use cloud storage (S3/R2/Cloudinary) for media
- Set strong JWT_SECRET (min 32 chars)
- Enable Guard for authorization
- Test with production database before deploying
- Use environment variables for all secrets
DON'T:
- Use file-based SQLite in serverless
- Hardcode secrets in code
- Deploy without testing schema sync
- Use local storage adapter in production
- Skip JWT_SECRET configuration
- Commit
.envfiles with real secrets
Related Skills
- bknd-database-provision - Set up production database
- bknd-production-config - Production security settings
- bknd-storage-config - Configure media storage
- bknd-env-config - Environment variable setup
- bknd-local-setup - Local development (pre-deploy testing)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devops/bknd-deploy-hosting/SKILL.md
Popularity
- Repository stars
- 42
- Repository forks
- 14
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diegosouzapw/awesome-omni-skill/bknd-deploy-hosting)