Closed codesfromshad closed 3 months ago
The docs mention this. If you don't want the names of your server variables leaked in your bundle, you should split your schema into a client schema and a server schema: https://env.t3.gg/docs/nextjs#create-your-schema
Oh, yes! It is mentioned in the docs here. Thanks, @adelrodriguez! Closing the issue then.
While
process.env.SECRET
slaps the "verysecretivesecret" in the chunks, t3-env exposes the name of the key "SECRET" in the chunked js. Not sure if that's a good thing or a bad thing. I would've to see a minified reference to my secret without exposing the key name. Is that possible?