Skip to content

feat: refactor backend proxy configuration#335

Open
YUDONGLING wants to merge 1 commit intocloudreve:masterfrom
YUDONGLING:feat-dev-proxy-setting-20260403.2
Open

feat: refactor backend proxy configuration#335
YUDONGLING wants to merge 1 commit intocloudreve:masterfrom
YUDONGLING:feat-dev-proxy-setting-20260403.2

Conversation

@YUDONGLING
Copy link
Copy Markdown
Member

@YUDONGLING YUDONGLING commented Apr 3, 2026

Unify proxy configuration for host-based backend routing.

Copilot AI review requested due to automatic review settings April 3, 2026 01:20
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

Refactors the Vite dev-server proxy configuration to unify backend proxy settings across multiple routes, aiming to support host-based backend routing behavior.

Changes:

  • Introduces a shared backendProxyOption object for proxy configuration.
  • Reuses backendProxyOption across /api, /s/, /f/, and /manifest.json proxy routes.
  • Adds an explicit Host header override derived from the backend URL.

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

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