Skip to content

⚡️ Hugo-powered blog deployed on Cloudflare Workers via Wrangler CI/CD 🚀 Fully static, IaC-friendly 🛠️

License

Notifications You must be signed in to change notification settings

RafaelMoreira1180778/website

Repository files navigation

homelabrafael.com

A fully static, small footprint Website, powered by Hugo, deployed with Cloudflare Workers.

Website Overview

Technology Stack

  • Static Site Generator: Hugo v0.148.1
  • Deployment Platform: Cloudflare Workers with Static Assets
  • Theme: Hugo Coder
  • Package Manager: npm
  • Build Tool: Wrangler v4.26.0

Development

Prerequisites

  • Node.js (>= 18.0.0)
  • Hugo v0.148.1+ (extended version)
  • Wrangler CLI

Available Scripts

  • npm run build - Build the Hugo site with minification
  • npm run dev - Start local development server with Wrangler
  • npm run deploy - Build and deploy to Cloudflare Workers
  • npm run preview - Start Hugo development server with drafts
  • npm run clean - Clean build artifacts

Local Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start development server: npm run dev
  4. Open http://localhost:8787

Deployment

The site is automatically deployed to Cloudflare Workers. For manual deployment:

npm run deploy

Migration from Cloudflare Pages

This website was successfully migrated from Cloudflare Pages to Cloudflare Workers following the official migration guide. Key improvements include:

  • Enhanced observability and debugging capabilities
  • Access to additional Cloudflare Workers features
  • Improved development workflow with Wrangler
  • Better control over static asset serving

Theme

The theme used in this website is the Hugo Coder theme, available on hugo-coder GitHub Repository.

License

Copyright © 2024 Rafael Moreira

This repository and all it's code is licensed under the MIT License.

About

⚡️ Hugo-powered blog deployed on Cloudflare Workers via Wrangler CI/CD 🚀 Fully static, IaC-friendly 🛠️

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •