Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PouchDB database locations should be configurable or default to somewhere guaranteed to be writable. #428

Open
nick-verida opened this issue May 9, 2024 · 0 comments

Comments

@nick-verida
Copy link
Contributor

nick-verida commented May 9, 2024

In a number of scenarios including deployment via AWS Amplify Next.js support the default location for PouchDB database (which I think is whatever the current directory is) isn't writable. It would also be useful for testing, so the databases don't litter the current directory.

It should either be configurable (at least via an environment variable) or default to TMPDIR on Linux and MacOS and TEMP on Windows.

See

this._localDbEncrypted = new PouchDB(this.databaseHash);

pouchdb/pouchdb#214

https://pouchdb.com/api.html#create_database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant