Patch Changes
-
#520
3bd200a
Thanks @vicb! - Defineprocess.version
andprocess.versions.node
-
#522
79fadc4
Thanks @vicb! - Log exceptions inrequirePage
andNodeModuleLoader
whenOPEN_NEXT_DEBUG=1
-
#523
19dedc7
Thanks @vicb! - fix: process.env has a higher loading priority than .env files -
#469
aef8e51
Thanks @Juuldamen! - Adds support for passing options toinitOpenNextCloudflareForDev()
. This allows you to configure how your Cloudflare bindings will behave during local development.For example, the below configuration will persist the local state of bindings to a custom directory. Which can be useful if you want to share the state between different apps that reuse the same bindings in a monorepo.
initOpenNextCloudflareForDev({ persist: { path: "../../.wrangler/state/v3/custom-dir", }, });
You can find the configuration type with it's available options here in the Wrangler source code.