cf-worker-api/README.md

24 lines
425 B
Markdown
Raw Normal View History

2025-06-12 13:15:37 +08:00
# OpenList API Token Generator
2025-06-12 00:13:57 +08:00
```txt
npm install
npm run dev
```
```txt
npm run deploy
```
[For generating/synchronizing types based on your Worker configuration run](https://developers.cloudflare.com/workers/wrangler/commands/#types):
```txt
npm run cf-typegen
```
Pass the `CloudflareBindings` as generics when instantiation `Hono`:
```ts
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()
```