Featured image of post Deploy Hugo project to Cloudflare Pages

Deploy Hugo project to Cloudflare Pages

📌 Introduction

Use wrangler deploy Hugo project or any static website to Cloudflare Pages.

使用 Wrangler 部署 Hugo 專案或任何靜態網站到 Cloudflare Pages。

Use Wrangler to upload files with a larger size limit.

使用 Wrangler 上傳可以上傳的檔案大小更多。

💻 Code

hugo --minify

# <project name>.pages.dev
wrangler pages deploy ./public/ --project-name <project name> --branch main --commit-message None

📖 Ref.

Cloudflare Pages