Skip to content

feat: Add broken link checker CI workflow#966

Closed
bobbyonmagic wants to merge 1 commit intomainfrom
fix/broken-links-cleanup-845
Closed

feat: Add broken link checker CI workflow#966
bobbyonmagic wants to merge 1 commit intomainfrom
fix/broken-links-cleanup-845

Conversation

@bobbyonmagic
Copy link
Collaborator

Fixes #845

Adds a CI workflow that scans the static Next.js build for broken internal links.

What it does:

  • Runs on every PR and push to main
  • Scans all HTML files in the build output
  • Validates that internal links resolve to existing pages
  • Fails the build if broken links are detected

Current status:
The link checker will detect 14 broken links that need to be addressed:

  1. /posts/infrastructure-as-code-fundamentals - Referenced in Terraform exercise
  2. /2026/01/16/ssl-cert-expiry.html - News article link
  3. /2026/01/20/bazel-9.html - News article link
  4. /2026/02/20/dependabot.html - News article link
  5. /authors/devops-daily-team - Author page removed in PR feat: Merge Authors section into Experts with optional post display #953
  6. /tags/ci/cd - Invalid tag format
  7. 6 category pages: /categories/android, /categories/ssh, /categories/windows, /categories/shell, /categories/database, /categories/c
  8. /categories/undefined and /authors/undefined - Invalid metadata

Next steps:
We need to discuss the proper approach for fixing these broken links before merging this PR.

Adds a link checker script that:
- Scans the static Next.js build output
- Validates all internal links
- Fails CI if broken links are detected

This prevents broken navigation from being deployed.
@cloudflare-workers-and-pages
Copy link

Deploying devops-daily with  Cloudflare Pages  Cloudflare Pages

Latest commit: f90c656
Status: ✅  Deploy successful!
Preview URL: https://e0df1b8f.devops-daily.pages.dev
Branch Preview URL: https://fix-broken-links-cleanup-845.devops-daily.pages.dev

View logs

@bobbyonmagic
Copy link
Collaborator Author

Closing this PR as the approach needs to be reconsidered after properly reverting unauthorized commits.

@bobbyonmagic bobbyonmagic deleted the fix/broken-links-cleanup-845 branch March 5, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Detect broken internal links (404s) in static Next.js site

1 participant