Skip to main content

Requirements

  • Bun 1.1.0+ installed locally
  • Account on Vertra Cloud
  • Configured package.json

Project Structure

Configuration

package.json

bunfig.toml

vertracloud.config

Example: Simple Server with Bun.serve()

src/index.ts

Deploy

  1. Execute bun install locally
  2. Exclude node_modules folder from the project
  3. Compress into a ZIP file
  4. Access Dashboard → New Project → Application
  5. Select Bun language and upload
  6. Configure memory (256MB for simple servers)
  7. Click “Create Application”

Available Versions

Notes

  • Performance: Bun is significantly faster than Node.js
  • Native TypeScript: Bun runs TypeScript directly without compilation
  • Compatibility: Bun is compatible with Node.js/npm, but has some differences
  • Environment variables: Access via process.env.KEY
  • Logs: Use console.log() for logs that appear in dashboard
  • Modules: Use bun add to add dependencies
  • Listen on 0.0.0.0 on port $PORT