File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,21 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/
2222 bun add -D wrangler@latest @opennextjs/cloudflare
2323 ```
2424
25- - add a ` wrangler.toml ` at the root of your project
26-
27- ``` toml
28- # :schema node_modules/wrangler/config-schema.json
29- name = " <your-app-name>"
30- main = " .open-next/worker.js"
31-
32- compatibility_date = " 2024-09-23"
33- compatibility_flags = [" nodejs_compat" ]
34-
35- # Use the new Workers + Assets to host the static frontend files
36- assets = { directory = " .open-next/assets" , binding = " ASSETS" }
37- ```
25+ - add a ` wrangler.json ` at the root of your project
26+
27+ ``` json
28+ {
29+ "$schema" : " node_modules/wrangler/config-schema.json" ,
30+ "main" : " .open-next/worker.js" ,
31+ "name" : " <your-app-name>" ,
32+ "compatibility_date" : " 2024-12-30" ,
33+ "compatibility_flags" : [" nodejs_compat" ],
34+ "assets" : {
35+ "directory" : " .open-next/assets" ,
36+ "binding" : " ASSETS"
37+ }
38+ }
39+ ```
3840
3941- add a ` open-next.config.ts ` at the root of your project:
4042
You can’t perform that action at this time.
0 commit comments