Skip to content

Commit fb13324

Browse files
committed
refresh cf pages testing
1 parent e93c8c7 commit fb13324

File tree

9 files changed

+2707
-42
lines changed

9 files changed

+2707
-42
lines changed

test/cloudflare_pages/.gitignore

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
1-
node_modules
2-
dist
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/
316
.wrangler
17+
18+
# env
19+
.env
20+
.env.production
421
.dev.vars
522

6-
# Change them to your taste:
7-
package-lock.json
8-
yarn.lock
9-
pnpm-lock.yaml
10-
bun.lockb
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

test/cloudflare_pages/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,16 @@ npm run dev
66
```txt
77
npm run deploy
88
```
9+
10+
[For generating/synchronizing types based on your Worker configuration run](https://developers.cloudflare.com/workers/wrangler/commands/#types):
11+
12+
```txt
13+
npm run cf-typegen
14+
```
15+
16+
Pass the `CloudflareBindings` as generics when instantiation `Hono`:
17+
18+
```ts
19+
// src/index.ts
20+
const app = new Hono<{ Bindings: CloudflareBindings }>()
21+
```

0 commit comments

Comments
 (0)