# yarn
yarn add --dev monosize-storage-upstash
# npm
npm install --save-dev monosize-storage-upstash
- Create an account on Upstash
- Create a Redis database
- Collect REST URL (
UPSTASH_REDIS_REST_URL
) and a read-only token (UPSTASH_REDIS_REST_TOKEN
) - Update
monosize.config.mjs
import upstashStorage from 'monosize-storage-upstash';
export default {
repository: 'https://github.com/ORG/REPO',
storage: upstashStorage({
url: 'REST URL (UPSTASH_REDIS_REST_URL)',
readonlyToken: 'Readonly token (UPSTASH_REDIS_REST_TOKEN)',
}),
};