Skip to content
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

Fix Domain Access Issue in Latest Vite Version #1444

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

WenjiaoYue
Copy link
Collaborator

@WenjiaoYue WenjiaoYue commented Jan 21, 2025

Description

Fix the restriction on using domain names when users are using the latest version of Vite

When users use the new version of Vite, the UI cannot be accessed via domain names due to Vite's new rules. This fix adds the corresponding parameters according to Vite's new rules, ensuring that users can access the frontend via domain names when building the UI.

Fixes #1441

Issues

#1441

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

the latest vite version

Tests

CI pass.

…test version of Vite

When users use the new version of Vite, the UI cannot be accessed via domain names due to Vite's new rules. This fix adds the corresponding parameters according to Vite's new rules, ensuring that users can access the frontend via domain names when building the UI.

Fixes #1441
Copy link

github-actions bot commented Jan 21, 2025

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

@lianhao
Copy link
Collaborator

lianhao commented Jan 21, 2025

Should we also add the same things for react UI? Because I see the same file vite.config.ts in multiple react UI things

@WenjiaoYue
Copy link
Collaborator Author

Should we also add the same things for react UI? Because I see the same file vite.config.ts in multiple react UI things

The react version is written by an other contributor. I think we can make sure the svelte version is correct first. I will verify the react version later and then add it.

@chensuyue chensuyue added this to the v1.2 milestone Jan 21, 2025
@chensuyue chensuyue merged commit b721c25 into main Jan 21, 2025
76 checks passed
@chensuyue chensuyue deleted the wenjiao/update_vite_parameters branch January 21, 2025 15:28
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.

[Bug] Vite package auto update causing 403 error when accessing UI using hostname rather than ip address
5 participants