Publii on Cloudflare without Github

Publii on Cloudflare without Github

At the beginning
npm already installed.
Ability to log in to Cloudflare

Current folder
Current folder
npm init -y
npm init -y
npm init -y

Install wrangler.

npm install --save-dev wrangler
npm install --save-dev wrangler
npm install --save-dev wrangler

Create Cloudflare pages project.

npx wrangler pages project create <your-project-name>
npx wrangler pages project create <your-project-name sizes=" />
npx wrangler pages project create
Sign in Cloudflare
Sign in Cloudflare
Successfully logged in.
Successfully logged in.
Enter the production branch name:
Enter the production branch name:

Enter the production branch name.

main , production or something you like.

Enter the production branch name:
Successfully logged in.
Successfully logged in.

Y or N.

Would you like to help improve Wrangler by sending usage metrics to Cloudflare?
metrics.json saved
metrics.json saved

Deploy the output folder.

npx wrangler pages deploy output
npx wrangler pages deploy preview
npx wrangler pages deploy output

Make sure your server is set up correctly.

Server settings are required
Server settings are required