Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Improve error handling when .env file is not present #71

Open
azrikahar opened this issue Mar 13, 2022 · 4 comments
Open

Improve error handling when .env file is not present #71

azrikahar opened this issue Mar 13, 2022 · 4 comments
Assignees

Comments

@azrikahar
Copy link
Contributor

Need to verify this for all existing examples except SvelteKit (which was implemented in #70).

@azrikahar azrikahar self-assigned this Mar 13, 2022
@freekrai freekrai assigned freekrai and unassigned azrikahar Oct 14, 2022
@freekrai
Copy link
Contributor

@azrikahar I have a few ideas about this, will vary based on stack of course but zod is useful for checking env vars

@azrikahar
Copy link
Contributor Author

Sounds great! Zod definitely would be more robust here 👍

@freekrai
Copy link
Contributor

Yeah zod or envalid, where envalid is specifically for env vars, so will pick one.

The fresh example currently uses envalid but once I choose one I'll update them all to be the same.

@rijkvanzanten
Copy link
Contributor

Linear: ENG-100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants