Skip to content

fix(docs): Gate DiffsHub routes by site#783

Merged
necolas merged 1 commit into
mainfrom
diffscom-404-redirects
Jun 8, 2026
Merged

fix(docs): Gate DiffsHub routes by site#783
necolas merged 1 commit into
mainfrom
diffscom-404-redirects

Conversation

@necolas

@necolas necolas commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Adds site gating so the DiffsHub catch-all viewer route returns 404s outside diffshub builds, while preserving the legacy /gh redirect to diffshub.com.

This prevents diffs.com missing paths from rendering the DiffsHub viewer without breaking the existing /gh redirect.

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jun 6, 2026 1:02am
pierre-docs-diffshub Ready Ready Preview Jun 6, 2026 1:02am
pierre-docs-trees Ready Ready Preview Jun 6, 2026 1:02am
pierrejs-diff-demo Ready Ready Preview Jun 6, 2026 1:02am

Request Review

Return 404s for the DiffsHub catch-all outside diffshub builds so diffs.com misses no longer render the viewer.
@necolas necolas merged commit ea5a8ae into main Jun 8, 2026
12 checks passed
@necolas necolas deleted the diffscom-404-redirects branch June 8, 2026 16:47
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.

2 participants