Skip to content

ci: don't fail preview builds on broken internal links - #767

Merged
rfay merged 1 commit into
ddev:mainfrom
rfay:20261026_rfay_preview_link_validation
Oct 26, 2026
Merged

rfay merged 1 commit into
ddev:mainfrom
rfay:20261026_rfay_preview_link_validation

Conversation

@rfay

@rfay rfay commented Oct 26, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Preview builds now warn about broken internal links instead of failing, so a link to a post that isn't merged yet doesn't block the preview. The build in test.yml still fails on them.

How This PR Solves The Issue

failOnBrokenLinks is off when PREVIEW_BUILD is set, which the fork preview workflow now does, and on Cloudflare Pages builds of any branch other than main. This matches how textlint and prettier are already left out of previews.

Manual Testing Instructions

Run PREVIEW_BUILD=true npm run build with a broken internal link in a post, and check that it prints "Build continued with N broken links" and exits 0. Without the variable, the build fails.

🤖 Developed with assistance from Claude Code

## Short Summary (TL;DR)

Preview builds now warn about broken internal links instead of failing, so a link to a post that isn't merged yet doesn't block the preview. The build in test.yml still fails on them.

## How This PR Solves The Issue

`failOnBrokenLinks` is off when `PREVIEW_BUILD` is set, which the fork preview workflow now does, and on Cloudflare Pages builds of any branch other than `main`. This matches how textlint and prettier are already left out of previews.

## Manual Testing Instructions

Run `PREVIEW_BUILD=true npm run build` with a broken internal link in a post, and check that it prints "Build continued with N broken links" and exits 0. Without the variable, the build fails.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rfay
rfay merged commit a124b77 into ddev:main Oct 26, 2026
3 checks passed
@rfay
rfay deleted the 20261026_rfay_preview_link_validation branch October 26, 2026 13:21
@github-actions

Copy link
Copy Markdown

PR closed. The Cloudflare Pages preview is no longer updated.

@github-actions

Copy link
Copy Markdown

🌐 Fork Preview for PR #767

https://pr-767.ddev-com-fork-previews.pages.dev

This preview updates automatically when you push changes to your fork.

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.

1 participant