t3-oss / t3-env

https://env.t3.gg
MIT License
2.67k stars 86 forks source link

How can I use a common variable and a client variable without a prefix? Nuxt 3 #241

Open fenn1ks opened 4 months ago

fenn1ks commented 4 months ago

How can I use a common variable and a client variable without a prefix?

juliusmarminge commented 2 months ago

what's the usecase? this limitation is there cause most frameworks will not expose vars to the client that doesn't have a prefix. Note however that client vars are most likely also avaialbel on the server so NEXT_PUBLIC_FOO for example can be accessed by both environments