Files
bknd/examples/cloudflare-worker/bknd.config.ts
dswbx 375d2c205f adapter(cloudflare): removed durable mode, added withPlatformProxy (#233)
* removed `durable` mode as it requires an import from "cloudflare:" that often fails in non-cf environments

* remove worker configuration types

* add `withPlatformProxy`

* withPlatformProxy: make configuration optional
2025-08-12 15:29:09 +02:00

13 lines
300 B
TypeScript

/**
* Optionally wrapping the configuration with the `withPlatformProxy` function
* enables programmatic access to the bindings, e.g. for generating types.
*/
import { withPlatformProxy } from "bknd/adapter/cloudflare";
export default withPlatformProxy({
d1: {
session: true,
},
});