18 lines
472 B
JavaScript
18 lines
472 B
JavaScript
import { config } from 'dotenv'
|
|
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = path.dirname(__filename)
|
|
|
|
config({ path: path.join(__dirname, '.env') })
|
|
|
|
export default {
|
|
schema: './src/db/schema.js',
|
|
out: './drizzle',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL ?? 'postgresql://planner:planner1234@localhost:5432/ten_minute_planner',
|
|
},
|
|
}
|