nextjs env t3 runtime error

I think i setup everything just as the docs said but i get the bellow error in the attached screenshot

error :
Unhandled Runtime Error
Error: Invalid environment variables

The env variables are correct
I used z.enum
The terminal doesn't show any errors

one thing: i changed the the file type of the next config from .js to .mjs as the one in the docs was because i got an error that said i cant use import statement

im not sure if it's a bug from the package or im doing something wrong

I cant upload the screenshot of the error (discord error) so i will share the link:

https://postimg.cc/5602czFF
Was this page helpful?