Repository navigation
fix: config url #8304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix: config url #8304
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff shows a single change: the default backend target for the Vite dev proxy was changed from
https://mkv3-ee.fit2cloud.cn/tohttp://[IP]:8080/.Irregularities / issues:
[IP]is a placeholder, not a valid host. As written,http://[IP]:8080/will fail if left unresolved. Note that[IP]in brackets looks like an IPv6 literal, butIPis not valid hex, so URL parsing may throw or the proxy will simply fail to connect. Either substitute a real address or use a clearly-invalid-but-unambiguous placeholder (e.g.,http://localhost:8080/).Loss of TLS. The original used
https://; the new default uses plainhttp://. If the backend still serves HTTPS, this will break (connection refused / protocol error). Confirm the backend actually speaks HTTP on 8080.Committed placeholder in source code. Hardcoding
[IP]in a tracked config file risks it being accidentally shipped or confusing other developers. Prefer driving the target from an environment variable (loadEnvis already imported) rather than editing the source per developer/machine.Trailing slash. The original had a trailing
/;http://[IP]:8080/also does — just make sure the proxy rewrite logic expects (or normalizes) the trailing slash consistently, since path joining can double slashes otherwise.Port change implication. Moving to port 8080 suggests a different service than the original production host. Ensure any cookie/CORS/origin expectations (cookies domain, redirect URLs) match, as dev-proxy behavior changes when host/port/scheme change.
Optimization suggestions:
.env.example.new URL(defaultBackendTarget)) to surface misconfiguration early.http://192.168.x.x:8080/) and avoid bracket syntax unless truly using IPv6.No structural problems with the surrounding code are visible from this fragment itself — the concerns above all stem from the changed value.