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
consider allowing string | boolean | undefined
for runtimeEnvStrict
#14
Comments
That's a strange one - never seen that... environment variables are usually just strings... I guess it'd fine? Although would love to know why this typedefinition is what it is to begin with, and why they don't use "0" and "1" like everyone else 🤔 |
From what I can tell, it's no longer the case vitejs/vite#7702 in
|
TBH, I don't think it's a bad idea to define the type as |
i guess |
when using this package with
nuxt
to typeVITE_
env vars, i am running into the following issue:nuxt
typesimport.meta.env
asRecord<string, string | boolean | undefined>
(see here) - i am guessing becausevite
sets these default values. however,t3-env
enforcesruntimeEnvStrict
to beRecord<string, string | undefined>
. would you consider allowingRecord<string, string | boolean | undefined>
onruntimeEnvStrict
to cover this usecase?The text was updated successfully, but these errors were encountered: