diff --git a/sdks/browser-sdk/src/utils/createClient.ts b/sdks/browser-sdk/src/utils/createClient.ts index e5f6cbaf5..7b1e33161 100644 --- a/sdks/browser-sdk/src/utils/createClient.ts +++ b/sdks/browser-sdk/src/utils/createClient.ts @@ -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)) ||