Invalid Environment Variables In Brandnew Project
Just ran create-t3-app and just added one environment variable:
Inside
.env.mjs
:
and in my .env
:
However, I get:
❌ Invalid environment variables: { PAYPAL_SECRET: [ 'Required' ] } - error Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error Error: Invalid environment variablesWhat am I missing here?
2 Replies