TanStackT
TanStack10mo ago
2 replies
abstract-purple

Accessing environment variables (env vars) in built Tanstack Start app

After building my app in a Docker image with vinxi build, the app is not detecting my environment variables after I start it up. From what I understand, you can declare environment variables, even VITE_ prefixed ones, and they will be detected once the server starts running and consumed by the backend and frontend.

Any ideas why this might be happening to me?
Was this page helpful?