Skip to content

Commit 11802c4

Browse files
irvinebroquevicb
andauthored
experimental_assets => assets (#37)
* experimental_assets => assets * fixup! bump wrangler & worker types --------- Co-authored-by: Victor Berchet <[email protected]>
1 parent a1eae5e commit 11802c4

File tree

5 files changed

+58
-64
lines changed

5 files changed

+58
-64
lines changed

examples/api/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ main = ".worker-next/index.mjs"
44
compatibility_date = "2024-09-16"
55
compatibility_flags = ["nodejs_compat_v2"]
66

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

99
[vars]
1010
hello = 'Hello World from the cloudflare context!'

examples/create-next-app/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ compatibility_date = "2024-08-29"
66
compatibility_flags = ["nodejs_compat_v2"]
77

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

packages/cloudflare/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/
2727
compatibility_flags = ["nodejs_compat"]
2828

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

3333
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`:

pnpm-lock.yaml

Lines changed: 53 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ packages:
33
- "examples/*"
44

55
catalog:
6-
"@cloudflare/workers-types": "^4.20240919.0"
6+
"@cloudflare/workers-types": "^4.20240925.0"
77
"@playwright/test": 1.47.0
88
"@types/node": ^22.2.0
99
"@types/react": ^18
@@ -14,7 +14,7 @@ catalog:
1414
"react": ^18
1515
"react-dom": ^18
1616
"typescript": ^5.5.4
17-
"wrangler": ^3.78.6
17+
"wrangler": ^3.78.10
1818
"tsup": ^8.2.4
1919
"glob": ^11.0.0
2020
"esbuild": ^0.23.0

0 commit comments

Comments
 (0)