File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
docs/start/framework/react Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ When deploying to Cloudflare Workers, you'll need to complete a few extra steps
80
80
81
81
1 . Update ` vite.config.ts `
82
82
83
- Set the ` target ` value to ` cloudflare-pages ` in your ` vite.config.ts ` file.
83
+ Set the ` target ` value to ` cloudflare-module ` in your ` vite.config.ts ` file.
84
84
85
85
``` ts
86
86
// vite.config.ts
@@ -97,12 +97,16 @@ export default defineConfig({
97
97
``` toml
98
98
# wrangler.toml
99
99
name = " your-cloudflare-project-name"
100
- pages_build_output_dir = " ./dist"
100
+ main = " ./.output/server/index.mjs"
101
+ compatibility_date = " 2025-04-01"
101
102
compatibility_flags = [" nodejs_compat" ]
102
- compatibility_date = " 2024-11-13"
103
+
104
+ [assets ]
105
+ binding = " ASSETS"
106
+ directory = " ./.output/public"
103
107
```
104
108
105
- Deploy your application to Cloudflare Pages using their one-click deployment process, and you're ready to go!
109
+ Deploy your application to Cloudflare Workers using their one-click deployment process, and you're ready to go!
106
110
107
111
### Node.js
108
112
You can’t perform that action at this time.
0 commit comments