Closed alexkreidler closed 1 year ago
you must only use the in-memory database if you use it in a browser environment, or you can create an API with it and use the API in the browser page
Thanks for that info! I've also realized that the same-origin/cross-origin policies of Bard mean that any fetch request from the browser directly to the service will be denied, so we need a proxy.
The
fs
module doesn't exist in browser contexts. Maybe we could not importdbcontext
ifinMemory
is true?