0.0.2 • Published 4 years ago

@sirusdev/workerskv-uploader v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Workers KV Uploader

static site file uploader to cloudflare workers KV

Quick Start

  1. install as development dependency

    npm i @sirusdev/workerskv-uploader
  2. this tools support .env configuration file or you can setup environment manually

    CF_API_TOKEN="--cloudflare-api-token--"
    ACCOUNT_ID="--cloudlfare-account-id--"
    KV_NAMESPACE_ID="--workers-KV-namespace-id--"
    LOG_LEVEL="info" # debug, fatal, error, silent
    SITE_ASSETS_DIR="./dist" # where you put compiled front-ends
  3. add deploy script to your package.json file

    {
      "scripts": {
        "deploy": "workerskv-upload"
      }
    }
  4. run deployment script

    npm run deploy