-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
How to use this package with Remix? #144
Comments
I've been away from Remix for quite some time now, but you should still be able to set it up on Remix using the core package I will try to create an example when I free to do so, but you can refer to doc for now https://env.t3.gg/docs/core 🙂 |
I did follow the docs on this, but the thing with remix is that the components are loaded both from the server and the client, so every time I import the Any working example would be very helpful. |
So if the env variable is being use in both server and client, the env should be defined under
Unfortunately, I wasn't able to get the same error in my test, mind if you can create a repro? |
I don't want the env variable to be available in both server and client. I just wanted to share the same file for both types just like I did with NextJS. I guess that's not going to work like this in Remix, so I've created 2 separate files as described in the docs: Looks like the issue is related to the new Vite integration in Remix as I'm currently using it (remix-run/remix#7934). I'll close this now as the issues is clearly not related to this package. |
Hi,
I've been using this package for some time now in NextJS and it works great.
I'd love to be able to use it in my Remix apps as well but I can't get it to work without some complicated workarounds like this.
Anyone successfully implemented this in Remix? Would love some advice.
Thanks
The text was updated successfully, but these errors were encountered: