Enhancement hasn't been filed before.
Describe the enhancement you want to request
Environment variables are now fetched automatically
As mentioned many times, you can finally skip fetching environment variables to use with the drizzle.config file. Drizzle Kit will handle this process automatically.
https://github.com/drizzle-team/drizzle-kit-mirror/releases/tag/v0.20.0
// drizzle.config.ts
import { config } from 'dotenv';
import { defineConfig } from 'drizzle-kit';
config({ path: '.env' }); // this seems unnecessary
export default defineConfig({
schema: './src/db/schema.ts',
out: './migrations',
dialect: 'turso',
dbCredentials: {
url: process.env.TURSO_CONNECTION_URL!,
authToken: process.env.TURSO_AUTH_TOKEN!,
},
});
- config({ path: '.env' });
https://orm.drizzle.team/docs/tutorials/drizzle-with-turso#setup-drizzle-config-file
Enhancement hasn't been filed before.
Describe the enhancement you want to request
https://github.com/drizzle-team/drizzle-kit-mirror/releases/tag/v0.20.0
- config({ path: '.env' });https://orm.drizzle.team/docs/tutorials/drizzle-with-turso#setup-drizzle-config-file