Skip to content
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

Support for key nesting #230

Closed
ScreamZ opened this issue May 5, 2024 · 1 comment
Closed

Support for key nesting #230

ScreamZ opened this issue May 5, 2024 · 1 comment

Comments

@ScreamZ
Copy link

ScreamZ commented May 5, 2024

Hi,

I like having a config like this one:

Before using T3-env, I was splitting my config in two file one for local and one for shared.

const ServerConfigSchema = z.object({
  auth: z.object({
    secret: z.string(),
    /**
     * How many time in seconds the link should be considered valid.
     **/
    magicLinkTTL: z.number().default(Duration.fromObject({ hours: 1 }).as("seconds")),
  }),
  notifications: z.object({
    resend: z.object({
      apiKey: z.string(),
      fromAddress: z.string().default("NoReply <noreply@resend.dev>"),
    }),
  }),
}

I was wondering could we add some kind of nesting / namespacing support?

@juliusmarminge
Copy link
Member

Should be solved in #169. Gonna track it there

@juliusmarminge juliusmarminge closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants