Skip to content

Commit cbf108f

Browse files
Update tanstack guide to use C3
1 parent 1dd47bf commit cbf108f

File tree

1 file changed

+6
-10
lines changed
  • src/content/docs/workers/framework-guides/web-apps

1 file changed

+6
-10
lines changed

src/content/docs/workers/framework-guides/web-apps/tanstack.mdx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ In this guide, you will create a new [TanStack Start](https://tanstack.com/start
2020

2121
## 1. Set up a new project
2222

23-
Start by cloning the Cloudflare example from the official TanStack repository.
23+
Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, initiate TanStack's official setup tool, and provide the option to deploy instantly.
24+
25+
To use `create-cloudflare` to create a new TanStack Start project with Workers Assets, run the following command:
2426

2527
<PackageManagers
26-
type="dlx"
27-
pkg="gitpick"
28-
args="TanStack/router/tree/main/examples/react/start-basic-cloudflare my-tanstack-app"
28+
type="create"
29+
pkg="cloudflare@latest"
30+
args="my-tanstack-app --framework=tanstack"
2931
/>
3032

3133
After setting up your project, change your directory by running the following command:
@@ -34,10 +36,6 @@ After setting up your project, change your directory by running the following co
3436
cd my-tanstack-app
3537
```
3638

37-
And install the project's dependencies with:
38-
39-
<PackageManagers type="install" />
40-
4139
## 2. Develop locally
4240

4341
After you have created your project, run the following command in the project directory to start a local development server. This will allow you to preview your project locally during development.
@@ -97,8 +95,6 @@ function RouteComponent() {
9795
}
9896
```
9997

100-
See `src/routes/index.tsx` for an example.
101-
10298
:::note
10399

104100
Running the `cf-typegen` script:

0 commit comments

Comments
 (0)