This is a special adapter used to retrieve archived gallery data from a database. When this adapter is included in your server, any request for gallery data will first check the local store. If the data is not found locally, the server will fall back to fetching it from the respective adapter as normal.
- Install the
@riffyh/adapter-storepackage.
bun add @riffyh/adapter-store- Add the adapter to your server configuration.
import { store } from "@riffyh/adapter-store";
import type { Config } from "@riffyh/commons";
const config: Config = {
dataSources: [
store({
mongoDBUri: "mongodb://...",
}),
],
};
export default config;- Type:
string - Required: Yes
Your MongoDB connection string.