❌ Attempted to access a server-side environment variable on the client
Hi all,
I just started a new T3 project where I would like to redirect my users from the login page based on the role that they have set in their profile.
Instead of using UseEffect, I was hoping it would be faster using ServerSideProps instead, but the error I get says that I am trying to use a NODE_ENV environment variable on the client side.
Do I need to do any special customization for being able to do this?
I just started a new T3 project where I would like to redirect my users from the login page based on the role that they have set in their profile.
Instead of using UseEffect, I was hoping it would be faster using ServerSideProps instead, but the error I get says that I am trying to use a NODE_ENV environment variable on the client side.
Do I need to do any special customization for being able to do this?

