fixing sqlite imports, clean up bun and cf examples

This commit is contained in:
dswbx
2025-07-02 15:46:57 +02:00
parent 144f35ec66
commit 56287eb05e
11 changed files with 45 additions and 125 deletions

3
examples/.gitignore vendored
View File

@@ -1 +1,2 @@
*/package-lock.json
*/package-lock.json
*/bun.lock

View File

@@ -1,17 +0,0 @@
// @ts-ignore somehow causes types:build issues on app
import { type BunBkndConfig, serve } from "bknd/adapter/bun";
// Actually, all it takes is the following line:
// serve();
// this is optional, if omitted, it uses an in-memory database
const config: BunBkndConfig = {
adminOptions: {
assets_path: "https://cdn.bknd.io/0.9.0-rc.1/",
},
connection: {
url: "file:data.db",
},
};
serve(config);

View File

@@ -8,8 +8,7 @@
"typegen": "wrangler types"
},
"dependencies": {
"bknd": "file:../../app",
"kysely-d1": "^0.4.0"
"bknd": "file:../../app"
},
"devDependencies": {
"typescript": "^5.8.3",