Skip to content

Comments

docs: add middleware mode quick example#6585

Merged
chenjiahan merged 7 commits intomainfrom
codex/add-configuration-examples-for-rsbuild-options
Nov 16, 2025
Merged

docs: add middleware mode quick example#6585
chenjiahan merged 7 commits intomainfrom
codex/add-configuration-examples-for-rsbuild-options

Conversation

@chenjiahan
Copy link
Member

Summary

  • add a quick middlewareMode configuration example to the English server middleware docs
  • mirror the new example in the Chinese documentation

Testing

  • not run

Codex Task

Copilot AI review requested due to automatic review settings November 15, 2025 11:27
@netlify
Copy link

netlify bot commented Nov 15, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit e7432f1
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/691986ba5c66210008b9a4dc
😎 Deploy Preview https://deploy-preview-6585--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 69 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

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 enhances the middleware mode documentation by adding a simple quick-start example before the more complex integration example, improving the learning curve for users.

Key Changes:

  • Adds a new "Enable middleware mode" section with a basic configuration example
  • Restructures the "Example" section to "Examples" with multiple subsections
  • Mirrors changes in both English and Chinese documentation for consistency

Reviewed Changes

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

File Description
website/docs/en/config/server/middleware-mode.mdx Adds a quick-start example showing basic middleware mode configuration and renames "Example" to "Examples" with subsections
website/docs/zh/config/server/middleware-mode.mdx Mirrors the English documentation changes with appropriate Chinese translations

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

@chenjiahan chenjiahan merged commit 51e10a0 into main Nov 16, 2025
11 checks passed
@chenjiahan chenjiahan deleted the codex/add-configuration-examples-for-rsbuild-options branch November 16, 2025 08:12
@chenjiahan chenjiahan mentioned this pull request Nov 18, 2025
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.

1 participant