Error with env variables
Hi, i'm experimenting with the /env folder t3-stack provides, and I am running into an issue wherin my environment variables aren't correctly loading in.
I've added them to .env and the serverSchema and i'm using them in the project as an import from env/server.mjs.
Am I doing something wrong? Thanks in advance
1 Reply
So I've figured it out.
Apparantly the error "Invalid Environment Variables" is inmensly misleading - If you accidentally use a server-side env variable in the client, the error "Invalid Environment Variables" get's thrown, even though your environment variables are correct. Spent way too much time on this when I had just overseen one of my components