T3 Stack · Function
createEnv
Define and validate environment variables with createEnv and Zod. Read them through a typed env object, while keeping server values out of client code.
Last updated
Syntax
createEnv({ server, client, runtimeEnv })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
@t3-oss/env-nextjs@t3-oss/env-corezodcreateEnv.env.exampleruntimeEnvserverclient