15 lines
301 B
TypeScript
15 lines
301 B
TypeScript
import { config } from 'dotenv'
|
|
import { defineConfig } from 'drizzle-kit'
|
|
|
|
config({ path: ['.env.local', '.env'] })
|
|
|
|
/*@ts-ignore*/
|
|
export default defineConfig({
|
|
out: './drizzle',
|
|
schema: './src/db/schema.ts',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL,
|
|
}
|
|
})
|