File tree Expand file tree Collapse file tree 5 files changed +107
-0
lines changed
dev-packages/e2e-tests/test-applications/hono-4-cf Expand file tree Collapse file tree 5 files changed +107
-0
lines changed Original file line number Diff line number Diff line change 1+ # prod
2+ dist /
3+
4+ # dev
5+ .yarn /
6+ ! .yarn /releases
7+ .vscode /*
8+ ! .vscode /launch.json
9+ ! .vscode /* .code-snippets
10+ .idea /workspace.xml
11+ .idea /usage.statistics.xml
12+ .idea /shelf
13+
14+ # deps
15+ node_modules /
16+ .wrangler
17+
18+ # env
19+ .env
20+ .env.production
21+ .dev.vars
22+
23+ # logs
24+ logs /
25+ * .log
26+ npm-debug.log *
27+ yarn-debug.log *
28+ yarn-error.log *
29+ pnpm-debug.log *
30+ lerna-debug.log *
31+
32+ # misc
33+ .DS_Store
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " hono-4-cf" ,
3+ "type" : " module" ,
4+ "scripts" : {
5+ "dev" : " wrangler dev" ,
6+ "deploy" : " wrangler deploy --minify" ,
7+ "cf-typegen" : " wrangler types --env-interface CloudflareBindings"
8+ },
9+ "dependencies" : {
10+ "hono" : " ^4.12.14"
11+ },
12+ "devDependencies" : {
13+ "wrangler" : " ^4.4.0"
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ import { Hono } from 'hono' ;
2+
3+ const app = new Hono ( ) ;
4+
5+ app . get ( '/' , c => {
6+ return c . text ( 'Hello Hono!' ) ;
7+ } ) ;
8+
9+ export default app ;
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "target" : " ESNext" ,
4+ "module" : " ESNext" ,
5+ "moduleResolution" : " Bundler" ,
6+ "strict" : true ,
7+ "skipLibCheck" : true ,
8+ "lib" : [" ESNext" ],
9+ "jsx" : " react-jsx" ,
10+ "jsxImportSource" : " hono/jsx"
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " node_modules/wrangler/config-schema.json" ,
3+ "name" : " hono-4-cf" ,
4+ "main" : " src/index.ts" ,
5+ "compatibility_date" : " 2026-04-20" ,
6+ // "compatibility_flags": [
7+ // "nodejs_compat"
8+ // ],
9+ // "vars": {
10+ // "MY_VAR": "my-variable"
11+ // },
12+ // "kv_namespaces": [
13+ // {
14+ // "binding": "MY_KV_NAMESPACE",
15+ // "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
16+ // }
17+ // ],
18+ // "r2_buckets": [
19+ // {
20+ // "binding": "MY_BUCKET",
21+ // "bucket_name": "my-bucket"
22+ // }
23+ // ],
24+ // "d1_databases": [
25+ // {
26+ // "binding": "MY_DB",
27+ // "database_name": "my-database",
28+ // "database_id": ""
29+ // }
30+ // ],
31+ // "ai": {
32+ // "binding": "AI"
33+ // },
34+ // "observability": {
35+ // "enabled": true,
36+ // "head_sampling_rate": 1
37+ // }
38+ }
You can’t perform that action at this time.
0 commit comments