monosize-storage-upstash
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

monosize-storage-upstash

Install

# yarn
yarn add --dev monosize-storage-upstash

# npm
npm install --save-dev monosize-storage-upstash

Usage

  • 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

Configuration

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)',
  }),
};

Readme

Keywords

none

Package Sidebar

Install

npm i monosize-storage-upstash

Weekly Downloads

0

Version

0.0.21

License

MIT

Unpacked Size

4.96 kB

Total Files

6

Last publish

Collaborators

  • layershifter
  • uifabricteam