moved main pkg back to deps to reduce tarball size + removed zod + cleanup old code + fixed tests

This commit is contained in:
dswbx
2024-12-07 10:11:26 +01:00
parent e5924b33e5
commit 71dbfc5469
11 changed files with 28 additions and 578 deletions

View File

@@ -189,7 +189,11 @@ export class DurableBkndApp extends DurableObject {
const config = options.config;
// change protocol to websocket if libsql
if ("type" in config.connection && config.connection.type === "libsql") {
if (
config?.connection &&
"type" in config.connection &&
config.connection.type === "libsql"
) {
config.connection.config.protocol = "wss";
}