![[Project Deploy] How to Deploy Self-Domain Hugo Website by Frontend Cloud Platforms Netlify,Cloudflare,Vercel Pages ?](/images_11031358996406002314_hu_d06d0190410ce1dc.webp)
[Project Deploy] How to Deploy Self-Domain Hugo Website by Frontend Cloud Platforms Netlify,Cloudflare,Vercel Pages ?
- Ironic Fizz
- Build
- May 6, 2026
+ Where am I ?
I just wonder what options are there for web hosting and automation.While all of these tools overlap, they generally fall into 3 categories:
| Categories | Service | Difficulty |
|---|---|---|
| Frontend Cloud Platforms | Netlify Pages,Cloudflare Pages,Vercel Pages | Easy |
| Infrastructure/Workflow Tools | Firebase,Git Actions | Mid |
| Self-host Paas | CapRover,Dokku, Coolify,Dokploy | Code |
In here I want to be pecific about Frontend Cloud Platform which is suitable for people do not want to host mechine by theirselve.
+ Who do I want to be ?
I wonder what are the difference between all three popular platforms
| Service | Vercel[1] | Netlify[2] | Cloudflares[3] |
|---|---|---|---|
| Free Bandwidth | 100GB | 100GB | 👑 Unlimited |
| Serverless function | Native | Supported | workers |
| Hit the limit | Site may be paused or you’ll get a “Fair Use” warning. No auto-overage on Hobby | Site is paused until the next cycle (unless you upgrade to “Personal/Pro”) | 👑 No bandwidth limit, but they may throttle if they detect abuse/DDoS |
| Price | Free tier, Pro $20/user/mo | Free tier, Pro $19/mo (flat) | 👑 Free tier, Workers Paid $5/mo |
| Strength | Best-in-class Next.js; AI SDK integrations. | 👑 Simplest DX; Built-in forms, auth, and large-file support.flow | Cheapest at scale; Global network is second to none. |
| Weakenss | “The Vercel Tax”: Bandwidth overages on Pro are expensive ($40/100GB). | Build minute limits are very tight on the free tier (300 mins). | Steeper learning curve; Workers are not full Node.js environments. |
| Best for | Next.js apps, polished DX | Static sites, simple deploys | 👑 Cost-sensitive apps at scale |
I guess in this case I’d choose “Cloudflare” for more room to wiggle with.
+ Why I always failed ?
Originally I am not familiar with the automate deploy flow there are some issues that I encounter:
- the GUI is hard to find the things I need
- the bandwidth limitation is not clear
- the limitation for writing script and where to put it
+ When to make change ?
when I feel the setting is really hard I just use Netlify.they just have custom flow to automatically make configuration work. When I feel hit the limitation I just suddenly figure out I should try different method to access so I turn to cloudflare.
+ What Actions Should I Take ?
Hugo Netlify Setup
The netlify.toml File Instead of clicking through the Netlify UI, create a file named netlify.toml in your root directory. This ensures your Hugo version matches your local environment perfectly.
[build] publish = "public" command = "hugo --gc --minify" [build.environment] # IMPORTANT: Match this to your 'hugo version' result HUGO_VERSION = "0.156.0" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" [context.deploy-preview] # Useful for seeing draft posts on your PR previews command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"Deploy to Netlify
- Log into Netlify and click Add new site > Import an existing project.
- Select your GitHub/GitLab repo.
Automatic Detection: Netlify will automatically detect Hugo and read your netlify.toml.
Deploy: Click Deploy site.
Hugo Cloudflare Setup
- Configure via Dashboard
When you connect your GitHub repo to Cloudflare Pages, use these settings:
- Framework Preset: Hugo
- Build command: hugo –gc –minify -b $CF_PAGES_URL
- Note: Using the $CF_PAGES_URL variable ensures your Preview Deployments (for pull requests) have the correct URLs.
- Build output directory: public
Essential Environment Variables
Variable Value Reason HUGO_VERSION 0.155.0 Match this to your local version (hugo version). GO_VERSION 1.24.0 Ensures the Go environment is up to date for Hugo. Advanced: The wrangler.jsonc Method
{ "name": "my-hugo-site", "compatibility_date": "2026-05-01", "assets": { "directory": "./public", "html_handling": "auto-trailing-slash" }, "build": { "command": "hugo --gc --minify -b $CF_PAGES_URL" }, "vars": { "HUGO_VERSION": "0.155.0" } }
+ Reference
- Vercel, Guillermo Rauch, 2015
- Netlify, Mathias Biilmann & Christian Bach, 2014
- CloudFlare, Matthew Prince, Lee Holloway, and Michelle Zatlyn, 2009
+ Hey! I’m IronicFizz.
A software engineer who believes everything can be analyzed from time, energy, attention, money to relation and feelings. I turn data into stories, emotions into charts, and curiosity into code.Hope to turn from Ironic-Fizz to Fizz-Proof One Day.
Share :
🚀 Ready to Build Your Fizz-Proof Path ?
Each week, I share actionable productivity tips, practical noise resolving solution, and highlights from my favourite books, directly to your inbox. It’s free, and always will be.👉There are people also enjoy data-driven topics you could join our community for solving ironic fizzies togather.🤝
Join Community 🙋♀️![[Data Idea]”Life Common Currency Antifragile Flywheel” to Feel Reason & Emotion ?](/images/image-placeholder_hu_4c2174eace49028d.webp)
![[Data Idea]”Time Income Statement” to Feel Accomplish for Fail ?](/TimeIncomeStatement_2605967361338242615_hu_5a2b3a5851b7a06c.webp)
![[Book Review] Life Accounting by Professor Hsu En Te:How to Measure Resources then Cut loss,Reinvest and Compound Interest ?](/images_7576588130649101336_hu_2365aebe1725f94c.webp)