TanStackT
TanStack8mo ago
5 replies
urgent-maroon

Runtime client env variables

Our workflows rely on creating docker images that can be reused across different environments. Because of this I've been trying to add the ability to use runtime client environment variables rather than relying on import.meta.env to bake them into the image during build.

I have been trying to implement it using https://import-meta-env.org/ but can't get a working solution, especially when I introduce t3/env. Anyone managed to achieve this or similar?
Build once, deploy anywhere. Import-meta-env helps to developing applications following the 12-factor principles.
Was this page helpful?