Skip to content

Commit cd9e0ec

Browse files
committed
Modifications to get sync to work with MCP
1 parent ecf0c4f commit cd9e0ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cloud/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const SYNC_DB_NAME = "fp_sync";
2727
// }
2828

2929
if (!runtimeFn().isBrowser) {
30-
const url = BuildURI.from(process.env.FP_KEYBAG_URL || "file://./dist/kb-dir-FireproofCloud");
30+
const url = BuildURI.from(process.env.FP_KEYBAG_URL || "file:///tmp/dist/kb-dir-FireproofCloud");
3131
url.setParam("extractKey", "_deprecated_internal_api");
3232
process.env.FP_KEYBAG_URL = url.toString();
3333
}
@@ -104,7 +104,7 @@ export function connect(
104104
connectURI.defParam("endpoint", doc.endpoint);
105105
}
106106
// eslint-disable-next-line no-console
107-
console.log("Fireproof Cloud: " + connectURI.toString());
107+
// console.log("Fireproof Cloud: " + connectURI.toString());
108108
if (
109109
doc.firstConnect &&
110110
runtimeFn().isBrowser &&

src/connection-from-store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function makeKeyBagUrlExtractable(sthis: SuperThis) {
7171
if (runtimeFn().isBrowser) {
7272
base = "indexdb://fp-keybag";
7373
} else {
74-
base = "file://./dist/kb-dir-partykit";
74+
base = "file:///tmp/dist/kb-dir-partykit";
7575
}
7676
}
7777
const kbUrl = BuildURI.from(base);

0 commit comments

Comments
 (0)