14 lines
258 B
TypeScript
14 lines
258 B
TypeScript
import { config } from 'dotenv';
|
|
config({ path: '../../../.env' });
|
|
|
|
const { POSTGRES_URL } = process.env;
|
|
|
|
export default {
|
|
schema: './src/schema/index.ts',
|
|
out: './migrations',
|
|
dialect: 'postgresql',
|
|
dbCredentials: {
|
|
url: POSTGRES_URL,
|
|
},
|
|
};
|