Skip to content

Commit 4693e0e

Browse files
authored
docs(start): build before deploying to cloudflare workers (#5531)
add build before deploy
1 parent 2824bf7 commit 4693e0e

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/start/framework/react/guide/hosting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ export default defineConfig({
8686
"start": "node .output/server/index.mjs",
8787
// ============ 👇 add these lines ============
8888
"preview": "vite preview",
89-
"deploy": "wrangler deploy",
89+
"deploy": "npm run build && wrangler deploy",
9090
"cf-typegen": "wrangler types"
9191
}
9292
}
9393
```
9494

95-
5. Build and deploy
95+
5. Deploy
9696

9797
```bash
98-
pnpm run build && pnpm run deploy
98+
pnpm run deploy
9999
```
100100

101101
Deploy your application to Cloudflare Workers using their one-click deployment process, and you're ready to go!

docs/start/framework/solid/guide/hosting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ pnpm add wrangler -D
9797
"build": "vite build && tsc --noEmit",
9898
"start": "node .output/server/index.mjs",
9999
// ============ 👇 add this line ============
100-
"deploy": "wrangler deploy"
100+
"deploy": "npm run build && wrangler deploy"
101101
}
102102
}
103103
```
104104

105-
6. Build and deploy
105+
6. Deploy
106106

107107
```bash
108-
pnpm run build && pnpm run deploy
108+
pnpm run deploy
109109
```
110110

111111
Deploy your application to Cloudflare Workers using their one-click deployment process, and you're ready to go!

examples/react/start-basic-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "vite dev",
88
"build": "vite build && tsc --noEmit",
99
"preview": "vite preview",
10-
"deploy": "wrangler deploy",
10+
"deploy": "npm run build && wrangler deploy",
1111
"cf-typegen": "wrangler types",
1212
"postinstall": "npm run cf-typegen"
1313
},

0 commit comments

Comments
 (0)