Skip to content

Commit 0ea6737

Browse files
update C3 instructions for Pages projects
It is now required to pass `--platform=pages` to create a Pages project.
1 parent 7bc1686 commit 0ea6737

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,6 @@
131131
},
132132
"volta": {
133133
"node": "22.9.0"
134-
}
134+
},
135+
"packageManager": "[email protected]+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca"
135136
}

src/content/docs/pages/get-started/c3.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,27 @@ This is the full format of a C3 invocation alongside the possible CLI arguments:
7474
<Tabs> <TabItem label="npm">
7575

7676
```sh
77-
npm create cloudflare@latest [--] [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
77+
npm create cloudflare@latest -- --platform=pages [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
7878
```
7979

8080
</TabItem> <TabItem label="yarn">
8181

8282
```sh
83-
yarn create cloudflare [--] [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
83+
yarn create cloudflare --platform=pages [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
8484
```
8585

8686
</TabItem> <TabItem label="pnpm">
8787

8888
```sh
89-
pnpm create cloudflare@latest [--] [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
89+
pnpm create cloudflare@latest --platform=pages [<DIRECTORY>] [OPTIONS] [-- <NESTED ARGS...>]
9090
```
9191

9292
</TabItem> </Tabs>
9393

94+
:::note
95+
To create a Pages project you must now specify the `--platform=pages` arg, otherwise C3 will always create a Workers project.
96+
:::
97+
9498
- `DIRECTORY` <Type text="string" /> <MetaInfo text="optional" />
9599

96100
- The directory where the application should be created. The name of the application is taken from the directory name.

0 commit comments

Comments
 (0)