Skip to content

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

@DataRaj

Description

@DataRaj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions