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

Handling Undefined process variable while running vite server #29

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

tarashagarwal
Copy link
Contributor

No description provided.

@tarashagarwal tarashagarwal requested review from a team as code owners January 7, 2025 10:44
@github-actions github-actions bot temporarily deployed to management-ui-dev (Production) January 7, 2025 10:46 Inactive
Copy link
Member

@devksingh4 devksingh4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That fixes it, but seems like a hack we shouldn't be using. Instead, we make sure that the top-level .env file is read in on both the API and the UI side. This file should then define the AWS_REGION since the API needs to know.

My guess as to why this freezes the UI is because the config is in common/ so it tries to compile it live not knowing the AWS_REGION. We could also set the UI's AWS_REGION I guess? or move the config out of common - I thought it would be useful to have them in the same place but maybe not.

@github-actions github-actions bot temporarily deployed to management-ui-dev (Production) January 8, 2025 19:06 Inactive
@devksingh4 devksingh4 merged commit b47c64f into main Jan 8, 2025
7 checks passed
@devksingh4 devksingh4 deleted the config_not_defined_error branch January 8, 2025 19:32
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