qiniu-cdn-sync
v1.1.0
Published
Qiniu CDN Sync
Downloads
8
Maintainers
Readme
qiniu-cdn-sync
Qiniu CDN Sync (for CRA ONLY now)
Installation
yarn add qiniu-cdn-sync
Usage
1, add Key Value
to your .evn
file or Github secret tokens
.
# CRA built-in
PUBLIC_URL=https://xxx.com/url/abc
# CDN
CI_CDN_ACCESS_KEY=AK-xxxx
CI_CDN_SECRET_KEY=SK-xxxx
CI_CDN_BUCKET=bucket-name
# CDN (Options)
CI_CDN_PATHNAME=123
CI_CDN_HOSTNAME=123
# BUILD_PATH=/build (CRA default)
BUILD_PATH=/__test__
2, append this script to your package.json
:
{
"scripts": {
"qiniu-cdn-sync": "NODE_ENV=production qiniu-cdn-sync"
}
}
License
MIT © Jason Feng