Skip to content

Commit 0621183

Browse files
Apply suggestions from code review
Co-authored-by: James Opstad <[email protected]>
1 parent a0fb3f3 commit 0621183

File tree

1 file changed

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

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ Add the following scripts to your `package.json` file:
6565
"cf-typegen": "wrangler types"
6666
```
6767

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
6969

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
7171

7272
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
7474
before deploying it.
7575

7676
### Update the `vite.config.ts` file
@@ -108,7 +108,7 @@ The `optimizeDeps` setting here is a temporary workaround and won't be necessary
108108

109109
## 2. Develop locally
110110

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.
112112

113113
<PackageManagers type="run" args="dev" />
114114

@@ -128,7 +128,7 @@ If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/bui
128128

129129
:::note
130130

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.
132132
This can help you making sure that your application will work as intended once it's been deployed to the Cloudflare network:
133133

134134
<PackageManagers type="run" args="serve" />
@@ -139,9 +139,9 @@ This can help you making sure that your application will work as intended once i
139139

140140
## Bindings
141141

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.
143143

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
145145
side code.
146146

147147
For example in the following way:

0 commit comments

Comments
 (0)