|
1 week ago | |
---|---|---|
src | 1 week ago | |
.gitignore | 1 week ago | |
.prettierrc | 1 week ago | |
README.md | 1 week ago | |
eslint.config.js | 1 week ago | |
package.json | 1 week ago | |
tsconfig.json | 1 week ago | |
wrangler.jsonc | 1 week ago |
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 }>()