@@ -25,19 +25,19 @@ Any contributions you make will be via [Pull Requests](https://docs.github.com/e
25
25
26
26
``` sh
27
27
> git remote -v
28
- origin https://github.com/< your-github-username> /opennextjs-cloudflare (fetch)
29
- origin https://github.com/< your-github-username> /opennextjs-cloudflare (push)
28
+ origin https://github.com/< your-github-username> /opennextjs-cloudflare (fetch)
29
+ origin https://github.com/< your-github-username> /opennextjs-cloudflare (push)
30
30
```
31
31
32
32
- Add ` opennextjs/opennextjs-cloudflare ` as the ` upstream ` remote repository.
33
33
34
34
``` sh
35
35
> git remote add upstream https://github.com/opennextjs/opennextjs-cloudflare
36
36
> git remote -v
37
- origin https://github.com/< your-github-username> /opennextjs-cloudflare (fetch)
38
- origin https://github.com/< your-github-username> /opennextjs-cloudflare (push)
39
- upstream https://github.com/opennextjs/opennextjs-cloudflare (fetch)
40
- upstream https://github.com/opennextjs/opennextjs-cloudflare (push)
37
+ origin https://github.com/< your-github-username> /opennextjs-cloudflare (fetch)
38
+ origin https://github.com/< your-github-username> /opennextjs-cloudflare (push)
39
+ upstream https://github.com/opennextjs/opennextjs-cloudflare (fetch)
40
+ upstream https://github.com/opennextjs/opennextjs-cloudflare (push)
41
41
```
42
42
43
43
- You should regularly pull from the ` main ` branch of the ` upstream ` repository to keep up to date with the latest changes to the project.
@@ -82,13 +82,13 @@ pnpm --filter cloudflare build:watch
82
82
Build and preview a Next.js sample application. For example, the ` api ` application:
83
83
84
84
``` sh
85
- pnpm --filter api preview:worker
85
+ pnpm --filter api preview
86
86
```
87
87
88
88
You can skip building the Next.js app when it has not been modified, and only run the Cloudflare adaptor tool:
89
89
90
90
``` sh
91
- SKIP_NEXT_APP_BUILD=true pnpm --filter api preview:worker
91
+ SKIP_NEXT_APP_BUILD=true pnpm --filter api preview
92
92
```
93
93
94
94
## Checking the code
@@ -102,7 +102,7 @@ pnpm run code:checks
102
102
Attempt to auto-fix any issues with the format, lint and type checks:
103
103
104
104
``` sh
105
- pnpm run code:fixes
105
+ pnpm run fix
106
106
```
107
107
108
108
## Testing the code
@@ -117,6 +117,7 @@ Run all the e2e tests, via Playwright:
117
117
118
118
``` sh
119
119
pnpm run e2e
120
+ pnpm run e2e:dev
120
121
```
121
122
122
123
## Changesets
@@ -127,15 +128,15 @@ We use the [`changesets`](https://github.com/changesets/changesets/blob/main/REA
127
128
- Create a changeset for the current change.
128
129
129
130
``` sh
130
- > pnpm changeset
131
+ pnpm changeset
131
132
```
132
133
133
134
- Select which workspaces are affected by the change and whether the version requires a major, minor or patch release.
134
135
- Update the generated changeset with a description of the change.
135
136
- Include the generate changeset in the current commit.
136
137
137
138
``` sh
138
- > git add ./changeset/* .md
139
+ git add ./changeset/* .md
139
140
```
140
141
141
142
### Changeset message format
0 commit comments