Skip to content

Commit a0fb3f3

Browse files
amend incorred deployment instructions
1 parent 5b0dbdd commit a0fb3f3

File tree

1 file changed

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

1 file changed

+16
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,25 @@ After you have created your project, run the following command in the project di
116116

117117
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including [Cloudflare's own](/workers/ci-cd/builds/).
118118

119-
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration appropriately.
119+
To deploy your application you will first need to build it:
120+
121+
<PackageManagers type="run" args="build" />
122+
123+
Once it's been built you can deploy it via:
120124

121125
<PackageManagers type="run" args="deploy" />
122126

127+
If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration appropriately.
128+
129+
:::note
130+
131+
After having built the application you can run the `serve` script to preview the built output locally before deploying it.
132+
This can help you making sure that your application will work as intended once it's been deployed to the Cloudflare network:
133+
134+
<PackageManagers type="run" args="serve" />
135+
136+
:::
137+
123138
---
124139

125140
## Bindings

0 commit comments

Comments
 (0)