Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Add redirect config for CaseSensitivePlugin.

Related links

#12532

Checklist

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

Copilot AI review requested due to automatic review settings December 24, 2025 06:05
@netlify
Copy link

netlify bot commented Dec 24, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 342e766
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/694b82a70ddf470008318c55
😎 Deploy Preview https://deploy-preview-12550--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: document release: document related release(mr only) labels Dec 24, 2025
@chenjiahan chenjiahan enabled auto-merge (squash) December 24, 2025 06:06
@chenjiahan chenjiahan merged commit 998d747 into main Dec 24, 2025
34 checks passed
@chenjiahan chenjiahan deleted the redirect-plugin-url branch December 24, 2025 06:06
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 adds a client-side redirect configuration to handle the URL change for the CaseSensitivePlugin documentation from its old path (warn-case-sensitive-modules-plugin) to its new path (case-sensitive-plugin).

Key Changes

  • Imports pluginClientRedirects from @rspress/plugin-client-redirects package
  • Configures a redirect from the old plugin documentation URL to the new URL
  • Adds the redirect plugin to the rspress configuration

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

{
from: '/plugins/webpack/warn-case-sensitive-modules-plugin',
to: '/plugins/webpack/case-sensitive-plugin',
},
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

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

The redirect configuration only includes the English documentation path. Since this project has both English and Chinese documentation (as seen in the /zh locale), a redirect should also be added for the Chinese path to ensure users accessing the old Chinese URL are properly redirected.

Consider adding a redirect for: /zh/plugins/webpack/warn-case-sensitive-modules-plugin to /zh/plugins/webpack/case-sensitive-plugin

Suggested change
},
},
{
from: '/zh/plugins/webpack/warn-case-sensitive-modules-plugin',
to: '/zh/plugins/webpack/case-sensitive-plugin',
},

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: document release: document related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants