@opennextjs/cloudflare 0.0.0-9a03245 → 0.0.0-b997312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,25 +30,6 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/
|
|
|
30
30
|
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
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`:
|
|
34
|
-
|
|
35
|
-
- Create the binding
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npx wrangler kv namespace create NEXT_CACHE_WORKERS_KV
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
- Paste the snippet to your `wrangler.toml`:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
[[kv_namespaces]]
|
|
45
|
-
binding = "NEXT_CACHE_WORKERS_KV"
|
|
46
|
-
id = "..."
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
> [!WARNING]
|
|
50
|
-
> The current support for ISR is limited.
|
|
51
|
-
|
|
52
33
|
## Local development
|
|
53
34
|
|
|
54
35
|
- you can use the regular `next` CLI to start the Next.js dev server:
|
package/package.json
CHANGED