Skip to content

Conversation

@duaneadam
Copy link

The generated project uses .env.local, but dotenv defaults to .env. This causes drizzle-kit commands to fail.

This PR fixes that by updating drizzle.config.ts to load .env.local.

Example error:

> drizzle-kit migrate

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/duane/Projects/my-project/drizzle.config.ts'
 Error  Please provide required params for Postgres driver:
    [x] url: undefined

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

Successfully merging this pull request may close these issues.

1 participant