env.t3.gg app directory

if I want to use https://env.t3.gg/ with nextjs app directory, where should I put env.mjs?
Env
Never build your apps with invalid environment variables again. Validate and transform your environment with the full power of Zod.
5 Replies
Josh
Josh14mo ago
No description
willm
willmOP14mo ago
ah you can just move app/ into a new src/ directory? New to nextjs so I didn't know that
Josh
Josh14mo ago
it works either way
willm
willmOP14mo ago
so I could have env.mjs in my root dir?
Josh
Josh14mo ago
you can have either ./src/app or ./app i like ./src/ cause it keeps my app code more contained, away from all my dotfiles and such
Want results from more Discord servers?
Add your server