feat: remove cloudflare adapter dependency to nodejs_compat

- adjusted bindings extraction to not rely on node inspect anymore
- added new vite export that uses nodejs apis
This commit is contained in:
dswbx
2025-11-11 13:33:04 +01:00
parent 3f55c0f2c5
commit 4859b99954
11 changed files with 119 additions and 31 deletions
+4 -4
View File
@@ -6,15 +6,15 @@
"scripts": {
"deploy": "wrangler deploy",
"dev": "wrangler dev",
"bknd-typegen": "PROXY=1 npx bknd types",
"bknd-typegen": "PROXY=1 node_modules/.bin/bknd types",
"typegen": "wrangler types && npm run bknd-typegen",
"predev": "npm run typegen"
"postinstall": "npm run typegen"
},
"dependencies": {
"bknd": "file:../../app"
},
"devDependencies": {
"typescript": "^5.9.2",
"wrangler": "^4.34.0"
"typescript": "^5.9.3",
"wrangler": "^4.46.0"
}
}
+1 -2
View File
@@ -2,8 +2,7 @@
"$schema": "node_modules/wrangler/config-schema.json",
"name": "bknd-cf-worker-example",
"main": "src/index.ts",
"compatibility_date": "2025-08-03",
"compatibility_flags": ["nodejs_compat"],
"compatibility_date": "2025-11-05",
"workers_dev": true,
"minify": true,
"assets": {