Skip to content

docs: fix example error in plugin-client-redirects#3124

Merged
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
ruibaby:docs/client-redirects-example
Feb 10, 2026
Merged

docs: fix example error in plugin-client-redirects#3124
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
ruibaby:docs/client-redirects-example

Conversation

@ruibaby
Copy link
Copy Markdown
Contributor

@ruibaby ruibaby commented Feb 10, 2026

Summary

Fix example error in plugin-client-redirects

Related Issue

None

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings February 10, 2026 09:27
Copy link
Copy Markdown
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

Fixes an incorrect configuration example for @rspress/plugin-client-redirects by placing the plugin under the plugins array in defineConfig, aligning the docs with the actual Rspress config shape.

Changes:

  • Update the English docs example to use plugins: [pluginClientRedirects(...)].
  • Apply the same example fix to the Chinese docs to keep translations consistent.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
website/docs/en/plugin/official-plugins/client-redirects.mdx Corrects the usage snippet to register the plugin via plugins array.
website/docs/zh/plugin/official-plugins/client-redirects.mdx Mirrors the same fix in the Chinese documentation snippet.

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

Copy link
Copy Markdown
Member

@SoonIter SoonIter left a comment

Choose a reason for hiding this comment

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

thanks ❤️️

@SoonIter SoonIter enabled auto-merge (squash) February 10, 2026 11:59
@SoonIter SoonIter merged commit 5a70b6e into web-infra-dev:main Feb 10, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants