cfpage
v0.0.8
Published
A simple for deploy Cloudflare page with custom data in .env file
Downloads
12
Readme
Cloudflare page deploy
A simple for deploy Cloudflare page with custom data in .env
file
⚠️ Note
I'm not cloudflared developer. I use code reference from repo workers-sdk.
Install
npm i -g cfpage
How to use
- Goto https://dash.cloudflare.com
- Goto "Account" -> "My profile" -> "API Tokens"
- Find "API Keys" and copy "Global API Key"
- Goto your current project
- Add
.env
variable this
CF_EMAIL="<YOUR_CLOUDFLARE_EMAIL>"
CF_TOKEN="<YOUR_CLOUDFLARE_TOKEN>"
CF_PROJECT_NAME="<CLOUDFLARE_PAGE_PROJECT_NAME>"
Structure .env
CF_EMAIL (REQUIRED)
For authenticate headers
CF_TOKEN (REQUIRED)
For authenticate headers
CF_PROJECT_NAME (REQUIRED)
Cloudflare page project name site
CF_BRANCH
Cloudflare page branch
Scripts
MacOSX
cfpage-mac deploy ./dist
Linux
~~cfpage-linux deploy ./dist~~ (Still fixing)
Windows
~~cfpage-win deploy ./dist~~ (Still fixing)