Creating a Unified `env` or `config` Object for All Fields

Looking to replace @t3-oss/env-core for the Config module. What is the most logical approach to creating one env or config object that has properties for all available fields?
const env = Effect.gen(function* () {
  return {
     secret: yield* Config.redacted(Config.string("SECRET")
  }
})

or?
Was this page helpful?