where should these variables be in my env var configuration
guys, where should these variables be in my env var configuration? the documentation isn't very clear on the server vs client vs runtime distinction
Solution:Jump to solution
```ts
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";
export const env = createEnv({...
8 Replies
Solution
something like this
Env
Never build your apps with invalid environment variables again. Validate and transform your environment with the full power of Zod.
okay so my understanding so that every .env var is supposed to be in the
runtimeEnv
but which ones are uspposed to be in client
and which in server
?for nextjs
Configuring: Environment Variables
Learn to add and access environment variables in your Next.js application.
each framework has its own pattern
but most of them have a prefix
NEXT_PUBLIC_
VITE_
and so onalrighty, tysm!