Skip to content

Commit 22fafa7

Browse files
committed
use wranglerconfig component
1 parent 6286e49 commit 22fafa7

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
Render,
1616
PackageManagers,
1717
Steps,
18+
WranglerConfig,
1819
} from "~/components";
1920

2021
[TanStack Start](https://tanstack.com/start) is a full-stack framework for building web applications. It comes with features like server-side rendering, streaming, server functions, bundling, and more. In this guide, you learn to deploy a TanStack Start application to Cloudflare Workers.
@@ -47,19 +48,16 @@ If you have an existing TanStack Start application, you can configure it to run
4748

4849
<Steps>
4950
1. Add the `wrangler.jsonc` configuration file to the root of your project with the following content:
50-
51-
```jsonc
52-
{
53-
"$schema": "node_modules/wrangler/config-schema.json",
54-
"name": "<YOUR_PROJECT_NAME>",
55-
"compatibility_date": "2025-09-02",
56-
"compatibility_flags": ["nodejs_compat"],
57-
"main": "@tanstack/react-start/server-entry",
58-
"observability": {
59-
"enabled": true,
60-
},
61-
}
51+
<WranglerConfig>
52+
```toml
53+
name = "<YOUR_PROJECT_NAME>"
54+
compatibility_date = "2025-09-02"
55+
compatibility_flags = ["nodejs_compat"]
56+
main = "@tanstack/react-start/server-entry"
57+
[observability]
58+
enabled = true
6259
```
60+
</WranglerConfig>
6361

6462
2. Install `wrangler` as a development dependency:
6563

0 commit comments

Comments
 (0)