@sirusdev/workerskv-uploader
v0.0.2
Published
tools to upload static assets to cloudflare workers KV
Downloads
16
Keywords
Readme
Workers KV Uploader
static site file uploader to cloudflare workers KV
Quick Start
install as development dependency
npm i @sirusdev/workerskv-uploader
this tools support
.env
configuration file or you can setup environment manuallyCF_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
add deploy script to your
package.json
file{ "scripts": { "deploy": "workerskv-upload" } }
run deployment script
npm run deploy