We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b32efc commit cc6c41bCopy full SHA for cc6c41b
docs/start/framework/react/hosting.md
@@ -86,6 +86,28 @@ pnpm add wrangler -D
86
}
87
```
88
89
+5. Modify package.json script
90
+
91
+```json
92
93
+{
94
+ "scripts": {
95
+ "dev": "vite dev",
96
+ "build": "vite build && tsc --noEmit",
97
+ "start": "node .output/server/index.mjs",
98
+ // ============ 👇 add this line ============
99
+ "deploy": "wrangler deploy"
100
+ },
101
+}
102
103
+```
104
105
+6. Build and deploy
106
107
+```bash
108
+pnpm run build && pnpm run deploy
109
110
111
Deploy your application to Cloudflare Workers using their one-click deployment process, and you're ready to go!
112
113
### Netlify ⭐ _Official Partner_
0 commit comments