Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/api/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ main = ".worker-next/index.mjs"
compatibility_date = "2024-09-16"
compatibility_flags = ["nodejs_compat_v2"]

experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
assets = { directory = ".worker-next/assets", binding = "ASSETS" }

[vars]
hello = 'Hello World from the cloudflare context!'
2 changes: 1 addition & 1 deletion examples/create-next-app/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ compatibility_date = "2024-08-29"
compatibility_flags = ["nodejs_compat_v2"]

# Use the new Workers + Assets to host the static frontend files
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
assets = { directory = ".worker-next/assets", binding = "ASSETS" }
2 changes: 1 addition & 1 deletion packages/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/
compatibility_flags = ["nodejs_compat"]

# Use the new Workers + Assets to host the static frontend files
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
assets = { directory = ".worker-next/assets", binding = "ASSETS" }
```

You can enable Incremental Static Regeneration ([ISR](https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration)) by adding a KV binding named `NEXT_CACHE_WORKERS_KV` to your `wrangler.toml`:
Expand Down
112 changes: 53 additions & 59 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ packages:
- "examples/*"

catalog:
"@cloudflare/workers-types": "^4.20240919.0"
"@cloudflare/workers-types": "^4.20240925.0"
"@playwright/test": 1.47.0
"@types/node": ^22.2.0
"@types/react": ^18
Expand All @@ -14,7 +14,7 @@ catalog:
"react": ^18
"react-dom": ^18
"typescript": ^5.5.4
"wrangler": ^3.78.6
"wrangler": ^3.78.10
"tsup": ^8.2.4
"glob": ^11.0.0
"esbuild": ^0.23.0
Expand Down