-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared variables from an extended config throw when used on the client #240
Comments
+1 here, just ran into it today with the exact same configuration |
+1, but without extending |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
:t3-env/packages/core/src/index.ts
Lines 276 to 279 in 5975abe
The text was updated successfully, but these errors were encountered: