If I now try and use that shared NODE_ENV variable from my siteEnv config like siteEnv.NODE_ENV on the client side, t3-env will throw the Attempted to access a server-side environment variable on the client error, as I assume the proxy used to detect this doesn't take into account configs in the extends option when checking shared.shape:
Say I have a common env config, and one specific to a Next.js site in my monorepo:
If I now try and use that shared
NODE_ENV
variable from mysiteEnv
config likesiteEnv.NODE_ENV
on the client side, t3-env will throw theAttempted to access a server-side environment variable on the client
error, as I assume the proxy used to detect this doesn't take into account configs in theextends
option when checkingshared.shape
:https://github.com/t3-oss/t3-env/blob/5975abe1c91c04277565e06763bec2530eb44473/packages/core/src/index.ts#L276-L279