mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
mcp: sorting tools, fixed cloudflare example, fixed some styling
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
/**
|
||||
* Optionally wrapping the configuration with the `withPlatformProxy` function
|
||||
* enables programmatic access to the bindings, e.g. for generating types.
|
||||
*
|
||||
* We're using separate files, so that "wrangler" doesn't get bundled with your worker.
|
||||
*/
|
||||
|
||||
import { withPlatformProxy } from "bknd/adapter/cloudflare";
|
||||
import config from "./config.ts";
|
||||
|
||||
export default withPlatformProxy({
|
||||
d1: {
|
||||
session: true,
|
||||
},
|
||||
});
|
||||
export default withPlatformProxy(config);
|
||||
|
||||
7
examples/cloudflare-worker/config.ts
Normal file
7
examples/cloudflare-worker/config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { CloudflareBkndConfig } from "bknd/adapter/cloudflare";
|
||||
|
||||
export default {
|
||||
d1: {
|
||||
session: true,
|
||||
},
|
||||
} satisfies CloudflareBkndConfig;
|
||||
@@ -1,4 +1,4 @@
|
||||
import { serve } from "bknd/adapter/cloudflare";
|
||||
import config from "../bknd.config";
|
||||
import config from "../config";
|
||||
|
||||
export default serve(config);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"isolatedModules": true,
|
||||
"noImplicitAny": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true
|
||||
|
||||
Reference in New Issue
Block a user