Skip to content

docs: improve documentation for history api fallback#6521

Merged
chenjiahan merged 3 commits intomainfrom
history_fallback_doc_1106
Nov 7, 2025
Merged

docs: improve documentation for history api fallback#6521
chenjiahan merged 3 commits intomainfrom
history_fallback_doc_1106

Conversation

@chenjiahan
Copy link
Member

Summary

  • Enhance descriptions for historyApiFallback.index and historyApiFallback.rewrites options
  • Add examples and tips for better understanding
  • Update type definitions with detailed comments

Checklist

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

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

netlify bot commented Nov 6, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit a100a65
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/690d35a642fbcb0008b633ae
😎 Deploy Preview https://deploy-preview-6521--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: 70 (🟢 up 23 from production)
Accessibility: 97 (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 pull request improves the documentation and type definitions for the History API fallback configuration by clarifying descriptions, adding helpful inline comments, and including JSDoc documentation for TypeScript type properties.

  • Enhanced clarity of index and rewrites option descriptions in both English and Chinese documentation
  • Added comprehensive JSDoc comments to HistoryApiFallbackOptions type properties
  • Included inline code comments in examples and a helpful tip about using server.proxy for non-fallback scenarios

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

File Description
website/docs/en/config/server/history-api-fallback.mdx Updated English documentation with clearer descriptions for index and rewrites options, added inline code comments, and included a tip about server.proxy
website/docs/zh/config/server/history-api-fallback.mdx Updated Chinese documentation with translations matching the English version improvements
packages/core/src/types/config.ts Added comprehensive JSDoc comments to all properties of HistoryApiFallbackOptions type

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

@chenjiahan chenjiahan merged commit bb63487 into main Nov 7, 2025
11 checks passed
@chenjiahan chenjiahan deleted the history_fallback_doc_1106 branch November 7, 2025 02:53
@chenjiahan chenjiahan mentioned this pull request Nov 7, 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

Comments