518651a93e8eb70617515e52fe6941e4c1ccf6a2
- Modified build script in package.json to include minification. - Removed unused dev server dependency from vite.config.ts. - Added .dockerignore to exclude unnecessary files from Docker context. - Created Dockerfile for multi-stage build with Bun for production deployment.
npm install
npm run dev
npm run deploy
For generating/synchronizing types based on your Worker configuration run:
npm run cf-typegen
Pass the CloudflareBindings as generics when instantiation Hono:
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()
Description
Languages
TypeScript
72.3%
Vue
27.3%
HTML
0.4%