Releases: opennextjs/opennextjs-cloudflare
@opennextjs/[email protected]
@opennextjs/[email protected]
Patch Changes
-
#372
522076b
Thanks @dario-piotrowicz! - add "async mode" togetCloudflareContext
Add an
async
option togetCloudflareContext({async})
to run it in "async mode", the difference being that the returned value is a
promise of the Cloudflare context instead of the context itselfThe main of this is that it allows the function to also run during SSG (since the missing context can be created on demand).
@opennextjs/[email protected]
Patch Changes
-
ad895ed: fix: vercel og patch not moving to right node_modules directory
There are two separate places where the node_modules could be. One is a package-scoped node_modules which does not always exist - if it doesn't exist, the server functions-scoped node_modules is used.
@opennextjs/[email protected]
Minor Changes
- 82bb588: feat: basic in-memory de-duping revalidation queue
Patch Changes
-
2e48d4f: fix: make sure that fetch cache
set
s are properly awaitedNext.js does not await promises that update the incremental cache for fetch requests,
that is needed in our runtime otherwise the cache updates get lost, so this change
makes sure that the promise is properly awaited viawaitUntil
-
0c26049: fix path to file template in
open-next.config.ts
.
@opennextjs/[email protected]
Patch Changes
-
ac8b271: fix waitUntil
Calling
waitUntil
/after
was failing when mulitple requests were handled concurrently.
This is fixed by pulling opennextjs/opennextjs-aws#733 -
761a312: import
randomUUID
fromnode:crypto
to support NodeJS 18
@opennextjs/[email protected]
Patch Changes
-
420b598: Fix asset cache path
-
a19b34d: perf: reduce CPU and memory usage by limiting code to AST parsing
-
f30a5fe: bump
@opennextjs/aws
dependency tohttps://pkg.pr.new/@opennextjs/aws@727
-
6791cea: Use kebab-case for the KV Cache.
-
a630aea: fix: enable using the
direct
queue for isrThe
direct
mode is not recommended for use in production as it does not de-dupe requests. -
f30a5fe: Fix: make sure that the kvCache doesn't serve stale cache values from assets when there is no KV binding
@opennextjs/[email protected]
Patch Changes
-
9561277: fix: remove dynamic require for map file
ESBuild tries to load all files in the chunks folder with
require("./chunks/" + var)
.
This is an error when the folder contains map file.
@opennextjs/[email protected]
Patch Changes
-
1ccff65: bump
@opennextjs/aws
dependency tohttps://pkg.pr.new/@opennextjs/aws@724
this bump fixes rewrites to external urls not working when the external urls
point to resources hosted on the Cloudflare network -
30374b9: fix: Drop the module condition from ESBuild
Because Next (via nft) does not use the module condition, ESBuild should not use it.
Otherwise we might end up with missing files and a broken build.
@opennextjs/[email protected]
Patch Changes
-
6103547: fix: provide a proper error message when using
getCloudflareContext
in static routesgetCloudflareContext
can't be used in static routes, currently a misleading error
message incorrectly tells the developer that they haven't calledinitOpenNextCloudflareForDev
in their config file, this change updates such error message to properly clarify what
the issue is (and how to solve it) -
0a6191d: fix the encoding of __NEXT_PRIVATE_STANDALONE_CONFIG
-
da7f8d8: fix: enable PPR with
wrangler dev
-
714172d: fix: trailing slash redirect
-
0892679: fix: inline optional dependencies when bundling the server