This is a small home grown version of t3-env but with much smaller set of features and example is written using Remix (v1) and Valibot
Big limitations compared to t3-env is that it doesn't enforce client prefix
Also there are some random bits like importing .server
files from client, that will probably require you to use vite-env-only
, I will try to update this gist once I migrate to Vite :)
- Tweet: https://twitter.com/JLarky/status/1749006296123396099
- Smaller version of this https://gist.github.com/JLarky/a8a4f7790a0022f1f1ca86bf96a0e502
- version by @rossipedia https://gist.github.com/rossipedia/7293cbd4958556b00fe7c62157c58fb9 (https://twitter.com/rossipedia/status/1749230118302580765)
- T3 Env by @juliusmarminge https://env.t3.gg/
- Remix docs https://remix.run/docs/en/main/guides/envvars
- My prior art https://github.com/fogbender/b2b-saaskit/blob/main/src/t3-env.ts