Skip to content

Commit

Permalink
Use dbPath option on client create
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Nov 1, 2024
1 parent c8a526f commit 0f64130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/browser-sdk/src/utils/createClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const createClient = async (
await init();

const host = options?.apiUrl ?? ApiUrls[options?.env ?? "dev"];
const dbPath = `xmtp-${options?.env ?? "dev"}-${accountAddress}.db3`;
const dbPath =
options?.dbPath ?? `xmtp-${options?.env ?? "dev"}-${accountAddress}.db3`;

const inboxId =
(await getInboxIdForAddress(host, accountAddress)) ||
Expand Down

0 comments on commit 0f64130

Please sign in to comment.