Closed jacobsamo closed 4 months ago
Hello @jacobsamo , Since turbo 2.0, Strict Mode for environment variables is now the default
You can try to declare your server env variables to your turbo.json config in globalEnv
or env
For example:
{
"$schema": "https://turborepo.org/schema.json",
"globalEnv": [
"NODE_ENV",
"RESEND_API_KEY",
"UNSPLASH_SECRET",
"UPLOADTHING_SECRET",
"UPLOADTHING_APP_ID",
"SUPABASE_SERVICE_ROLE",
"GOOGLE_AI_API_KEY",
"UPSTASH_REDIS_REST_URL",
"UPSTASH_REDIS_REST_TOKEN"
],
...
Thank you so much, this ended up working, silly me for not trying that. spent way too much time trying to fix.
Pages to Investigate
https://github.com/t3-oss/t3-env https://github.com/jacobsamo/Mixie/tree/dev
Steps to Reproduce
I am currently using using T3 Env for type safe environment variables however on vercel it seems that the server environment variables aren't pulling in for some reason. it builds fine in locally and builds fine using the Vercel CLI using
vercel pull
andvercel build
.I have checked that my environment variables are correct in my settings and they are and are set for the right environments. This is the error I see:
What else have I tried
I tired removing the package and running with normal
process.env
however still no luck. environment variables are still not being populatedMy config:
Branches