How to Make ENV Accessible in a TanStack Start Server Build?
I'm using the Clerk example: Clerk Basic Example
- Result: Only
- Error:
Environment Variables
I have the following in my.env:App Config
Myapp.config.ts uses the node-server preset since I plan to host on AWS Lightsail:Debugging Logs
After running the build, in my__root.tsx I added:- Result: Only
VITE_CLERK_* variables are visible in both logs during the build.Server Function
Here’s the function that calls Clerk auth:- Error:
My Question
How do I make the server seeCLERK_SECRET_KEY in the built version?