Skip to content

feat: add redirects config in chronicle.yaml#71

Merged
rsbh merged 4 commits into
mainfrom
feat/redirects-config
May 14, 2026
Merged

feat: add redirects config in chronicle.yaml#71
rsbh merged 4 commits into
mainfrom
feat/redirects-config

Conversation

@rsbh
Copy link
Copy Markdown
Member

@rsbh rsbh commented May 14, 2026

Summary

Add redirects config to chronicle.yaml for old URL to new URL mapping.

redirects:
  - from: /old-page
    to: /docs/new-page
  - from: /legacy/api
    to: /apis
    permanent: true
  • permanent: false (default) → 302 temporary redirect
  • permanent: true → 301 permanent redirect
  • Checked before all other routes in route resolver

Test plan

  • Add redirect in config → visiting old URL redirects to new
  • permanent: true → returns 301
  • No redirect → normal routing works
  • Existing routes not affected

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

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

Project Deployment Actions Updated (UTC)
chronicle Ready Ready Preview, Comment May 14, 2026 9:31am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

Review Change Stack

Warning

Rate limit exceeded

@rsbh has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 55 minutes and 22 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: aa15dfc0-67a6-4ef0-81a4-eef353c0e112

📥 Commits

Reviewing files that changed from the base of the PR and between 44d6e27 and c498a88.

📒 Files selected for processing (5)
  • docs/content/docs/configuration.mdx
  • docs/content/docs/features.mdx
  • packages/chronicle/src/lib/route-resolver.test.ts
  • packages/chronicle/src/lib/route-resolver.ts
  • packages/chronicle/src/types/config.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/redirects-config

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 and usage tips.

Support from/to redirect pairs with optional permanent flag.
Checked before all other routes in route resolver.
301 for permanent, 302 for temporary (default).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- 307 Temporary Redirect (default)
- 308 Permanent Redirect (permanent: true)
- Update route-resolver tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rsbh rsbh requested a review from rohanchkrabrty May 14, 2026 09:26
@rsbh rsbh marked this pull request as ready for review May 14, 2026 09:26
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers content, API reference, navigation, themes, SEO/AI, DX,
redirects, sorting, markdown URLs, playground, and health endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rsbh rsbh merged commit fe4eea1 into main May 14, 2026
4 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.

2 participants