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

feat(app): hide unused env vars from vite dist #16720

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

shlokamin
Copy link
Member

@shlokamin shlokamin commented Nov 7, 2024

Overview

Oopsy, we were passing in a bunch of env variables into our app builds that the app did not need. This PR only passes in the node env and the mixpanel id for the frontend to use.

Test Plan and Hands on Testing

Build the app which some rogue env variables and look at the dist, you should only see a mixpanel id and node env, nothing else.

make -C app dist OT_APP_MIXPANEL_ID="somefakeid" THIS_SHOULD_NOT_SHOW_UP="blah" NODE_ENV="development"

Changelog

  • Hide unused env variables

Review requests

See test plan

Risk assessment

Low/med

@shlokamin shlokamin requested a review from a team as a code owner November 7, 2024 17:24
@shlokamin shlokamin requested review from jerader, y3rsh and sfoster1 and removed request for a team and jerader November 7, 2024 17:24
@sfoster1 sfoster1 requested a review from a team as a code owner November 7, 2024 17:31
@shlokamin shlokamin merged commit cee27a2 into edge Nov 7, 2024
28 checks passed
@shlokamin shlokamin deleted the app_hide-unused-env-variables branch November 7, 2024 19:12
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