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

enhancement/env-parsing-with-zod #498

Merged

Conversation

jszuminski
Copy link
Contributor

Goal of this pull request

We want to make it as easy to debug issues related to improper configuration of the Export Server. Thus, having an environment variable parser go through all the .env vars set by the user and check if they are properly set, according to our documentation would make the entire product usage smoother (it allows to quickly detect mistakes which could then cause major bugs).

Additional note

Zod could also help us with migration to TypeScript, we can easily use it to generate types and we could parse different types of object for an additional safety layer.

@jszuminski jszuminski self-assigned this Mar 25, 2024
@jszuminski jszuminski requested a review from PaulDalek March 25, 2024 12:32
@jszuminski jszuminski marked this pull request as ready for review March 25, 2024 12:32
Copy link
Contributor

@PaulDalek PaulDalek left a comment

Choose a reason for hiding this comment

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

Great work! Make sure that all envs are covered.

@PaulDalek PaulDalek requested a review from cvasseng April 3, 2024 15:28
@PaulDalek PaulDalek merged commit 7c278e4 into test/basic-test-env-setup Apr 3, 2024
1 check passed
@PaulDalek PaulDalek deleted the enhancement/env-parsing-with-zod branch April 3, 2024 15:45
@jszuminski jszuminski mentioned this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants