@t3-oss/env-nextjs with NX Monorepo v18

I have a really strange issue when trying to implement @t3-oss/env-nextjs inside of a NX Monorepo. During build, i get Inner Error: Error: Invalid environment variables regardless of whether I have environment variables set in my .env.local or not... If i remove the import responsible for validating env vars from the next.config.mjs file, i am able to access my env vars in a page... If I try to access the env vars through the env object exposed by @t3-oss/env-nextjs, i can also output the env vars, but it's just at build time, it appears validation is failing as the required vars are "missing" during build.... Has anyone else experienced anything like this? or has any idea of what I might be doing wrong...
0 Replies
No replies yetBe the first to reply to this messageJoin