You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/framework-guides/web-apps/tanstack.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,12 @@ Add the following scripts to your `package.json` file:
65
65
"cf-typegen": "wrangler types"
66
66
```
67
67
68
-
-`deploy`: this script can be to deploy your application after you've built it
68
+
-`deploy`: used to deploy your application after you have built it
69
69
70
-
-`cf-typegen`: generate Cloudflare TypeScript types for your project based on your configuration
70
+
-`cf-typegen`: used to generate Cloudflare TypeScript types for your project based on your configuration
71
71
72
72
Note that there are already three relevant scripts that the TanStack CLI defined for you: `dev`, `build` and `serve`, which respectively allow you to start a local Vite dev server
73
-
to develop locally your application, build your application (so that it can be deployed) and start a local preview server that you can use to validate your build application
73
+
to develop locally your application, build your application (so that it can be deployed) and start a local preview server that you can use to validate your built application
74
74
before deploying it.
75
75
76
76
### Update the `vite.config.ts` file
@@ -108,7 +108,7 @@ The `optimizeDeps` setting here is a temporary workaround and won't be necessary
108
108
109
109
## 2. Develop locally
110
110
111
-
After you have created your project, run the following command in the project directory to start a local server. This will allow you to preview your project locally during development.
111
+
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.
112
112
113
113
<PackageManagerstype="run"args="dev" />
114
114
@@ -128,7 +128,7 @@ If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/bui
128
128
129
129
:::note
130
130
131
-
After having built the application you can run the `serve` script to preview the built output locally before deploying it.
131
+
After having built the application you can run the `serve` script to preview the build output locally before deploying.
132
132
This can help you making sure that your application will work as intended once it's been deployed to the Cloudflare network:
133
133
134
134
<PackageManagerstype="run"args="serve" />
@@ -139,9 +139,9 @@ This can help you making sure that your application will work as intended once i
139
139
140
140
## Bindings
141
141
142
-
Your TanStack Start application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings.
142
+
Your TanStack Start application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using bindings.
143
143
144
-
You can use bindings simply by [importing the `env` object](https://developers.cloudflare.com/workers/runtime-apis/bindings/#importing-env-as-a-global) and using it from your server
144
+
You can use bindings simply by [importing the `env` object](https://developers.cloudflare.com/workers/runtime-apis/bindings/#importing-env-as-a-global) and accessing it in your server
0 commit comments