Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env giving errors, Could not test the componts individually. #3

Open
DataRaj opened this issue Jul 26, 2024 · 0 comments
Open

Env giving errors, Could not test the componts individually. #3

DataRaj opened this issue Jul 26, 2024 · 0 comments

Comments

@DataRaj
Copy link

DataRaj commented Jul 26, 2024

I want to understand the application neatly cannot run it locally as I am getting same error consistently ->
❌ Invalid environment variables: {
NODE_ENV: [ 'Required' ],
NEXTAUTH_URL: [ 'Required' ],
AUTH_SECRET: [ 'Required' ],
DATABASE_URL: [ 'Required' ],
RESEND_API_KEY: [ 'Required' ],
RESEND_EMAIL_FROM: [ 'Required' ],
RESEND_EMAIL_TO: [ 'Required' ],
GOOGLE_MAPS_API_KEY: [ 'Required' ],
NEXT_PUBLIC_APP_URL: [ 'Required' ],
GOOGLE_MAPS_URL: [ 'Required' ]
}
here I copied empty vars from .env.example to .env.local and then filled it up (some of with the dummy data) all the data,
So even though I set this up on neon then again I tried to setup with local psql, I tried to modify the code in env.mjs by adding nullable() functions to all the options in zod createEnv() function. still can't avoid this error,
one more thing is I don't want google maps right now in my application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant