Skip to content

Add 301 redirects for remaining 404s from docs/blog restructure#990

Open
Jordy-Baby wants to merge 1 commit into
mainfrom
fix/404-redirects
Open

Add 301 redirects for remaining 404s from docs/blog restructure#990
Jordy-Baby wants to merge 1 commit into
mainfrom
fix/404-redirects

Conversation

@Jordy-Baby

@Jordy-Baby Jordy-Baby commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Adds 301 redirects in vercel.json for URLs from the July 2026 GSC audit that were verified as live 404s before this change. Every candidate URL from the audit list was re-checked against production on 2026-07-02 and all ten still returned 404, so none needed to be dropped from the fix.

Redirects added (pre-fix status verified via curl against docs.envio.dev)

Old URL Pre-fix status Redirects to
/blog/clickhouse-sink-hyperindex-v3 404 /blog/clickhouse-storage-hyperindex-v3
/blog/envio-developer-update-april-2024 404 /blog
/blog/envio-developer-update-june-2024 404 /blog
/blog/envio-developer-update-july-2024 404 /blog
/blog/envio-developer-community-update-no-1 404 /blog
/blog/envio-developer-community-update-no-3 404 /blog
/blog/envio-developer-community-update-no-6 404 /blog
/blog/envio-real-time-indexing-powers-peppy-finance 404 /blog
/blog/2024/11/08/06-hosted-service-v2 404 /blog/hosted-service-v2
/docs/HyperIndex/status 404 /docs/HyperIndex/hosted-service

Notes:

  • The clickhouse redirect follows the rename to blog/2026-04-24-clickhouse-storage.md (slug /clickhouse-storage-hyperindex-v3), confirmed in git history and returning 200 in production.
  • The 2024 dev updates, community updates, and peppy-finance post were pruned deliberately, so they point at /blog.
  • The dated URL redirects to /blog/hosted-service-v2 (200 in production, matching blog/2024-11-08-hosted-service-v2.md). A generic /blog/2024/:month/:day/:slug to /blog pattern is added after the specific rule to catch any other stale dated blog URLs; no current post uses dated slugs, and the specific redirect sits above it so it is not shadowed.
  • No standalone /docs/HyperIndex/status page ever existed in git history (only supported-networks/status-sepolia), so it points at /docs/HyperIndex/hosted-service per the audit fallback.
  • Every /blog and /docs entry has a matching .md variant redirect per existing convention. The .md variants of pruned posts point at /blog (not /blog.md) because /blog.md returns 404 in production.
  • All destinations verified 200 in production. No existing redirects, rewrites, or headers (including the X-Robots-Tag noindex rules) were modified. JSON validated, no duplicate sources, and no destination is itself a redirect source (no loops). Full site build passes.

Follow-ups for reviewer

  1. After deploy, someone with Search Console access should hit "Validate fix" on the Not found (404) reason under Indexing then Pages, for BOTH properties: sc-domain:envio.dev and sc-domain:docs.envio.dev.
  2. No action needed: none. Every URL on the audit candidate list was still 404 in production at verification time, so all ten received redirects.

Summary by CodeRabbit

  • Bug Fixes
    • Improved routing for legacy blog and docs URLs so old links now send visitors to the correct current pages.
    • Added redirects for several outdated blog post paths, including date-based URLs, to keep content accessible and avoid broken pages.
    • Updated HyperIndex documentation links to point to the current hosted service page.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
envio-docs Ready Ready Preview, Comment Jul 2, 2026 7:04pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 55a3725b-ec44-4767-aa29-cf41cad8ac32

📥 Commits

Reviewing files that changed from the base of the PR and between 386f8d3 and 8e8ddd9.

📒 Files selected for processing (1)
  • vercel.json

📝 Walkthrough

Walkthrough

This PR adds new permanent redirect rules to vercel.json, consolidating retired blog post URLs (clickhouse sink rename, envio developer/community/real-time posts, date-based blog paths) to /blog, and adding HyperIndex status page redirects to hosted-service documentation.

Changes

Vercel Redirect Configuration

Layer / File(s) Summary
Blog URL consolidation
vercel.json
Adds permanent redirects for clickhouse-sink-hyperindex-v3 → clickhouse-storage-hyperindex-v3 rename, envio-developer-* and envio-real-time-indexing-* posts (with .md variants) to /blog, and date-based /blog/2024/:month/:day/:slug paths to /blog.
HyperIndex doc redirects
vercel.json
Adds permanent redirects mapping /docs/HyperIndex/status and its .md variant to /docs/HyperIndex/hosted-service and .md.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • enviodev/docs#950: Both PRs extend vercel.json's redirects with new permanent redirect rules for retired blog URLs and HyperIndex-related paths.
  • enviodev/docs#956: Both PRs modify vercel.json's redirects with new permanent URL mappings involving /docs/HyperIndex/*.
  • enviodev/docs#957: Both PRs modify vercel.json's redirects to add/adjust legacy route mappings under the docs/blog URL space, including .md variants.

Suggested reviewers: nikbhintade, keenbeen32

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding 301 redirects to fix remaining 404s after the docs/blog restructure.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jordy-Baby Jordy-Baby enabled auto-merge (squash) July 2, 2026 20:57
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