xmtp / xmtp-js

XMTP client SDKs, content types, and other packages written in TypeScript
https://xmtp.org/docs
211 stars 40 forks source link

Remove node storage used for test #189

Closed antho1404 closed 1 year ago

antho1404 commented 1 year ago

A ./scratch directory is created even when the LocalStorageStore is not used.

https://github.com/xmtp/xmtp-js/blob/a7263d74a290f72b4faa0057a27d8463728272f6/src/store/LocalStorageStore.ts#L3

This is fine for development mode and/or tests but creates an issue for any SSR application running on a read-only environment like vercel.

We should be able to initialize a client even in an SSR environment without any error.

Here is the error from a deployment on Vercel

Screen Shot 2022-10-14 at 11 35 20
neekolas commented 1 year ago

This is removed