♥️ Loving Ironic Fizz? Please 👍 on data_driven_life
[Project Deploy] How to Deploy Self-Domain Hugo Website by Frontend Cloud Platforms Netlify,Cloudflare,Vercel Pages ?

[Project Deploy] How to Deploy Self-Domain Hugo Website by Frontend Cloud Platforms Netlify,Cloudflare,Vercel Pages ?

+ 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:

CategoriesServiceDifficulty
Frontend Cloud PlatformsNetlify Pages,Cloudflare Pages,Vercel PagesEasy
Infrastructure/Workflow ToolsFirebase,Git ActionsMid
Self-host PaasCapRover,Dokku, Coolify,DokployCode

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

ServiceVercel[1]Netlify[2]Cloudflares[3]
Free Bandwidth100GB100GB👑 Unlimited
Serverless functionNativeSupportedworkers
Hit the limitSite may be paused or you’ll get a “Fair Use” warning. No auto-overage on HobbySite is paused until the next cycle (unless you upgrade to “Personal/Pro”)👑 No bandwidth limit, but they may throttle if they detect abuse/DDoS
PriceFree tier, Pro $20/user/moFree tier, Pro $19/mo (flat)👑 Free tier, Workers Paid $5/mo
StrengthBest-in-class Next.js; AI SDK integrations.👑 Simplest DX; Built-in forms, auth, and large-file support.flowCheapest 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 forNext.js apps, polished DXStatic 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

  1. 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"
    
  2. Deploy to Netlify

    • Log into Netlify and click Add new site > Import an existing project.
    • Select your GitHub/GitLab repo.
  3. Automatic Detection: Netlify will automatically detect Hugo and read your netlify.toml.

  4. Deploy: Click Deploy site.

Hugo Cloudflare Setup

  1. 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
  1. Essential Environment Variables

    VariableValueReason
    HUGO_VERSION0.155.0Match this to your local version (hugo version).
    GO_VERSION1.24.0Ensures the Go environment is up to date for Hugo.
  2. 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

  1. Vercel, Guillermo Rauch, 2015
  2. Netlify, Mathias Biilmann & Christian Bach, 2014
  3. 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 🙋‍♀️

Related Posts

[Data Idea]”Life Common Currency Antifragile Flywheel” to Feel Reason & Emotion ?

[Data Idea]”Life Common Currency Antifragile Flywheel” to Feel Reason & Emotion ?

+ Where am I ? I am looking for a way to accumulate “currencies” (Money, Attention, Energy, Time) without succumbing to burnout as tasks grow in complexity. My goal is to transition from manual effort to an automated system a self-sustaining cycle where processes become SOPs (Standard Operating Procedures) that improve themselves over time.

Read More
[Data Idea]”Time Income Statement” to Feel Accomplish for Fail ?

[Data Idea]”Time Income Statement” to Feel Accomplish for Fail ?

+ Where am I? Currently, I approach projects as isolated events—once a task is done, the momentum stops. I want to shift this dynamic. I am looking for a mechanism that allows me to “do less to achieve more” by turning practice into a repeatable system. By automating core habits, I can create the “stacking effect” necessary to pursue a wider variety of interests without burning out.

Read More
[Book Review] Life Accounting by Professor Hsu En Te:How to Measure Resources then Cut loss,Reinvest and Compound Interest ?

[Book Review] Life Accounting by Professor Hsu En Te:How to Measure Resources then Cut loss,Reinvest and Compound Interest ?

“Life Accounting(人生會計學)”[1] is primarily authored by Professor Hsu En-Te (許恩得) of Tunghai University, treats the individual as a “Life Corporation.” It applies professional accounting frameworks to personal development to help people move from “high income, low surplus” to a state of holistic wealth.

Read More