Skip to content

fix: do not pass process value to browser build #2174

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 1 commit into from
Jul 10, 2025

Conversation

eglitise
Copy link
Collaborator

Slight security improvement for the browser version. Currently Vite is configured to pass the entire process.env object to the build, which is unneeded. However, it's not a critical issue because the object is only exposed in the dev build (I checked both the preview build and inspector.appiumpro.com).
This PR simply changes it to an empty object, eliminating the Vite build warning.
A similar adjustment is added for process.argv, which also eliminates one console error.

@github-actions github-actions bot added the fix This resolves a user-facing problem label Jul 10, 2025
@eglitise eglitise merged commit 0f3a1bd into appium:main Jul 10, 2025
7 checks passed
@eglitise eglitise deleted the ignore-process-in-web branch July 10, 2025 12:52
KazuCocoa pushed a commit to projectxyzio/appium-inspector that referenced this pull request Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This resolves a user-facing problem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants