Skip to content

Commit cf9b45e

Browse files
update changeset
1 parent 5aad339 commit cf9b45e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.changeset/chilly-dryers-begin.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
introduce new `initOpenNextCloudflareForDev` utility and make `getCloudflareContext` synchronous
66

7-
introduce a new `initOpenNextCloudflareForDev` function that when called in the [Next.js config file](https://nextjs.org/docs/app/api-reference/config/next-config-js) integrates the Next.js dev server with the open-next Cloudflare adapter. Most noticeably this enables `getCloudflareContext` to work in
8-
the edge runtime (including middlewares) during development.
7+
this change introduces a new `initOpenNextCloudflareForDev` function that must called in the [Next.js config file](https://nextjs.org/docs/app/api-reference/config/next-config-js) to integrate the Next.js dev server with the open-next Cloudflare adapter.
98

10-
Moving forward we'll recommend that all applications include the use of this utility in their config file (there is no downside in doing so and it only effect local development).
9+
Also makes `getCloudflareContext` synchronous, so `await`ing such function is no longer necessary.
10+
11+
Additionally the `getCloudflareContext` can now work during local development (`next dev`) in the edge runtime (including middlewares).
12+
13+
Moving forward we'll recommend that all applications include the use of the `initOpenNextCloudflareForDev` utility in their config file (there is no downside in doing so and it only effect local development).
1114

1215
Example:
1316

@@ -23,5 +26,3 @@ const nextConfig = {};
2326

2427
export default nextConfig;
2528
```
26-
27-
thanks to this new utility we are also able to make `getCloudflareContext` synchronous, so `await`ing such function is no longer necessary

0 commit comments

Comments
 (0)