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

Validate env vars with Zod #2362

Draft
wants to merge 9 commits into
base: miho-strict-null-checks
Choose a base branch
from
Draft

Conversation

infomiho
Copy link
Contributor

@infomiho infomiho commented Oct 29, 2024

This PR will enable us to have strict env vars validation with Zod for Wasp's internal env vars. Also, it will enable users to define their own env var validation. Wasp will use the Zod schemas to output errors for missing env vars.

Left to do

  • After the strict null checks is merged, make sure that the types are correct Enables strict null checks in SDK #2360
  • Make sure all env vars in our code are used through the env object and not directly
  • Experiment with enabling users to add their own env vars validation
  • Update docs
  • Fix keycloak.env.KEYCLOAK_REALM_URL leftover

@infomiho infomiho changed the base branch from main to miho-strict-null-checks October 29, 2024 11:25
Signed-off-by: Mihovil Ilakovac <[email protected]>
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.

1 participant