Skip to content

Commit 78da0e6

Browse files
committed
fixup! changeset
1 parent eca54b0 commit 78da0e6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.changeset/cyan-donuts-perform.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
"@opennextjs/cloudflare": minor
3+
---
4+
5+
Refactor the codebase for consistency
6+
7+
BREAKING CHANGE
8+
9+
Overrides:
10+
11+
Overrides now live in `@opennextjs/cloudflare/overrides` and some files have been renamed.
12+
13+
- Incremental cache overrides: `@opennextjs/cloudflare/overrides/incremental-cache/...`
14+
- Tag cache overrides: `@opennextjs/cloudflare/overrides/tag-cache/...`
15+
- Queue overrides: `@opennextjs/cloudflare/overrides/queue/...`
16+
17+
For example the KV incremental cache override can be imported as `@opennextjs/cloudflare/overrides/incremental-cache/kv-incremental-cache`.
18+
19+
Environment variables and bindings name changes:
20+
21+
- `NEXT_CACHE_WORKERS_KV` -> `NEXT_INC_CACHE_KV`
22+
- `NEXT_CACHE_R2_...` -> `NEXT_INC_CACHE_R2_...`
23+
- `NEXT_CACHE_D1` -> `NEXT_TAG_CACHE_D1`
24+
- `NEXT_CACHE_DO_...` -> `NEXT_TAG_CACHE_DO_...`
25+
- `NEXT_CACHE_DO_REVALIDATION` -> `NEXT_CACHE_DO_QUEUE`
26+
- `NEXT_CACHE_REVALIDATION_WORKER` -> `WORKER_SELF_REFERENCE`
27+
28+
Other:
29+
30+
`NEXT_CACHE_D1_TAGS_TABLE` and `NEXT_CACHE_D1_REVALIDATIONS_TABLE` have been dropped.
31+
The tables have a fixed names `tags` and `revalidations`.

0 commit comments

Comments
 (0)