Skip to main content

3 posts tagged with "docusaurus"

View All Tags

Fix Transitive npm Vulnerabilities with overrides & --omit=dev

· 4 min read
Jaybee
AI & Robotics Engineer

Fixing Transitive npm Vulnerabilities with overrides

📌 Executive Summary (TL;DR)

  • The Problem: Running npm audit fix --force on deep transitive dependencies (packages nested inside direct dependencies) frequently forces destructive major framework downgrades, breaking modern React 19 and bundler toolchains.
  • The Solution: Declare targeted replacement rules using npm v8.3+ overrides in package.json to pin safe patch versions without waiting for upstream maintainer PR releases.
  • CI/CD Hardening: Eliminate non-production build-tool noise in GitHub Actions workflows using npm audit --omit=dev --audit-level=high.

GitHub Pages Custom Domain & Cloudflare DNS: Migration Guide

· 6 min read
Jaybee
AI & Robotics Engineer

Hosting an engineering blog on GitHub Pages under username.github.io/project is one of the most cost-effective and friction-free setups for developers. You push markdown files, Git workflows trigger, and GitHub serves your static artifacts worldwide.

However, operating on a shared multi-tenant subdomain (*.github.io) introduces structural limitations: it sits on the Public Suffix List (PSL), offers no custom edge HTTP security headers (HSTS, CSP, or custom cache-control rules), and ties your canonical URLs permanently to GitHub's host name rather than an infrastructure-agnostic apex domain.

To build a professional engineering presence, you need an apex custom domain (e.g., globaldevlog.com). In this first installment of our static blog infrastructure series, we walk through the exact zero-downtime migration blueprint from jbjihwan.github.io/global_blog to https://globaldevlog.com, powered by a high-availability Porkbun + Cloudflare + GitHub Pages 3-tier architecture.

npm audit fix: How to Fix npm Vulnerability & GHSA Alerts

· 6 min read
Jaybee
AI & Robotics Engineer

Every modern frontend developer has experienced this sudden spike of adrenaline: you run npm audit on your clean documentation or blog repository, and the terminal screams back in alarming red text:

45 vulnerabilities (15 moderate, 15 high, 15 critical)
To address all issues (including breaking changes), run:
npm audit fix --force

Seeing words like Critical, Remote Code Execution (RCE), and Prototype Pollution triggers an immediate instinct: type npm audit fix --force to make the scary red warnings go away.

However, in the world of Static Site Generators (SSG) like Docusaurus, Next.js, or Hugo deployed to GitHub Pages or AWS S3, doing so is often an engineering mistake that breaks production builds without improving your actual security posture.

In this article, we dissect the static site threat model, explain why bundler vulnerabilities differ fundamentally from server vulnerabilities, and share a production-tested 4-Layer Security Hardening Blueprint to protect what actually matters: your secrets, client privacy, and repository integrity.