Skip to content

fix(seo): keep private routes out of search - #216

Merged
ryuzdev merged 2 commits into
mainfrom
seo/private-pages
Dec 1, 2026
Merged

ryuzdev merged 2 commits into
mainfrom
seo/private-pages

Conversation

@ryuzdev

@ryuzdev ryuzdev commented Dec 1, 2026

Copy link
Copy Markdown
Member

What: exclude app-only routes from search indexing.

  • Sitemap: Blume lists every static custom Astro page and offers no exclusion knob (verified in its sitemap source and sitemap-and-robots docs), so a post-build step strips /console and /console/app. Segment-aware (keeps /get-started/console-tour), wired into web/package.json build and docker/Dockerfile, covered by a bun test. Build log: sitemap.xml 81 -> 79 urls.
  • robots.txt: our own web/public/robots.txt (Blume defers to public/ files) adds Disallow for /console, /keys, /oauth/ and /api/, keeping the Content-Signal and Sitemap lines.
  • noindex, nofollow on web/pages/console/index.astro and app.astro, and on the Rust-rendered OAuth pages (auth/pages.rs, incl. the refresh return page) and console sign-in layout (also covers /keys), with unit and HTTP tests.
  • Docs welcome page retitled Welcome -> Outer documentation (route /docs unchanged); description kept (95 chars).

Checks run: cargo fmt --check, cargo clippy --locked (-D warnings), targeted cargo tests (auth::pages, console sign-in noindex, http::keys), bun test pages/console + strip script (116 pass), bun run build (real dist verified), bun run validate, bun run doctor, blume build --isolated (its output never carries deploy artifacts, pre-existing Blume behavior; console HTML + docs title verified there).

- Sitemap: strip /console and /console/app after blume build (Blume lists every custom Astro page with no exclusion knob); wired into package.json build and Dockerfile, with a segment-aware script plus bun test.
- robots.txt: ship our own public/robots.txt (Blume defers to it) with Disallow for /console, /keys, /oauth/ and /api/, keeping the Content-Signal and Sitemap lines.
- noindex, nofollow on the console Astro pages and the Rust-rendered OAuth and console sign-in pages, with unit and HTTP tests.
- Docs welcome page retitled to Outer documentation; its description stays short for search results.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 082ee293-1da7-4af1-8ae6-1b02d1494c9b
Commits

Reviewing files that changed from the base of the PR and between ec19a33 and cf3d22f.

Files selected for processing: 11

  • crates/outer/src/auth/pages.rs
  • crates/outer/src/http/console.rs
  • docker/Dockerfile
  • web/docs/docs.mdx
  • web/docs/meta.ts
  • web/package.json
  • web/pages/console/app.astro
  • web/pages/console/index.astro
  • web/public/robots.txt
  • web/scripts/strip-private-sitemap.mjs
  • web/scripts/strip-private-sitemap.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@ryuzdev
ryuzdev merged commit 539fb54 into main Dec 1, 2026
5 checks passed
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