mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
* 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
13 lines
300 B
TypeScript
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,
|
|
},
|
|
});
|