env.mjs - Use as const
Hey I'm adding t3 env to my project and had a question about as const. Doing z.enum(['production', 'dev']) only results in the returned type being a string, not a string constant. Would I make a TS file w/ my types and import that into env.mjs? Thanks!
0 Replies