File tree Expand file tree Collapse file tree
examples/react/start-basic-cloudflare Expand file tree Collapse file tree Original file line number Diff line number Diff 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
101101Deploy your application to Cloudflare Workers using their one-click deployment process, and you're ready to go!
Original file line number Diff line number Diff 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
111111Deploy your application to Cloudflare Workers using their one-click deployment process, and you're ready to go!
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments