Skip to content

docs: remove dotenv from drizzle.config.ts examples#669

Open
f4rkh4d wants to merge 1 commit into
drizzle-team:mainfrom
f4rkh4d:docs/remove-dotenv-from-drizzle-config
Open

docs: remove dotenv from drizzle.config.ts examples#669
f4rkh4d wants to merge 1 commit into
drizzle-team:mainfrom
f4rkh4d:docs/remove-dotenv-from-drizzle-config

Conversation

@f4rkh4d
Copy link
Copy Markdown

@f4rkh4d f4rkh4d commented May 9, 2026

Closes #5725

drizzle-kit auto-loads .env since v0.20.0, so calling dotenv.config() inside drizzle.config.ts is no longer necessary.

This PR removes the dotenv import and config({ path: '...' }) call from the drizzle.config.ts snippets in 6 tutorials. The src/db/index.ts blocks still keep dotenv, since application code legitimately needs it at runtime.

Files touched:

  • drizzle-with-neon
  • drizzle-with-supabase
  • drizzle-with-turso
  • drizzle-with-vercel
  • drizzle-with-xata
  • drizzle-nextjs-neon

18 deletions total, no other changes.

drizzle-kit auto-loads .env since v0.20.0, so calling dotenv.config()
inside drizzle.config.ts is no longer necessary.

Removes the dotenv import and config() call from the drizzle.config.ts
snippets in 6 tutorials. The src/db/index.ts blocks still call dotenv
since application code legitimately needs it at runtime.

Closes #5725
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