Skip to content

Conversation

@SahilAujla
Copy link
Collaborator

Redirect Cleanup: Remove stale GitBook & 404 redirects

Summary

Stage Redirects
Before 985
After removing GitBook redirects 783
After removing redirects resulting in 404s 664

Total removed: 321 redirects (33% reduction)


What's in this PR

1. Removed GitBook-era redirects (202 removed)

These are redirects with /alchemy/..., /enhanced-apis/..., and /documentation/... source paths, all from our GitBook days.

GitBook was 3+ years ago and we've done 2 full migrations since (GitBook → ReadMe → Fern). Safe to assume any external links have either updated by now or are dead anyway.

2. Removed 404 redirects (119 removed)

Wrote a custom script to test each redirect source URL against our live site. If hitting the source returned a 404, the redirect isn't doing anything, so I removed them.

Skipped dynamic redirects (:path*, :method* patterns) since those can't be tested statically.

Copilot AI review requested due to automatic review settings December 18, 2025 01:57
@SahilAujla SahilAujla requested a review from a team as a code owner December 18, 2025 01:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes 321 outdated redirects (33% reduction from 985 to 664) by eliminating stale GitBook-era redirects and non-functional 404 redirects that no longer serve any purpose.

Key Changes:

  • Removed 202 GitBook-era redirects from paths containing /alchemy/, /enhanced-apis/, and /documentation/
  • Removed 119 redirects that return 404 errors when tested against the live site
  • Retained dynamic redirects with :path* and :method* patterns as they cannot be statically tested

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Dec 18, 2025, 1:59 AM

@github-actions github-actions bot temporarily deployed to docs-preview December 18, 2025 01:57 Destroyed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SahilAujla SahilAujla merged commit 5b292ce into main Dec 18, 2025
8 of 9 checks passed
@SahilAujla SahilAujla deleted the sa/removing-redirects-v2 branch December 18, 2025 02:08
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