@cloudflare/next-on-pages@1.10.0
Minor Changes
-
739e2a7: make (no-op)
caches
available in dev modeupdate
setupDevPlatform
to also add acaches
object to the global scope
so that it can be used during development in a production-like mannernote: the implementation of
caches
is currently a no-op one
Patch Changes
-
90e140c: Make the
getRequestContext
's error message more helpful during local developmentDuring local development add information in the
getRequestContext
's error
message reminding the user to setup the dev platform viasetupDevPlatform
in their config file -
5187973: Make
getRequestContext
andgetOptionalRequestContext
throw if used inside the Node.js runtimeCurrently if users run
getRequestContext
orgetOptionalRequestContext
in the Node.js runtime
they get a generic error saying that the request context could not be found, improve such behavior
by having the functions throw instead, clearly informing the user that the problem is the wrong
runtime being used -
9b1d951: Fix bundled wasm imports that are not located inside the function's directory.
-
b46977c: Fix the Next.js
originalRequest
bug for an unminified edge function generated by Vercel.