mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
f5e1d7825a
* Some cleaning * Fix seeds * Fix all sign in, sign up flow and apiKey optimistic rendering * Fix
17 lines
516 B
TypeScript
17 lines
516 B
TypeScript
import dotenv from 'dotenv';
|
|
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
|
|
dotenv.config();
|
|
|
|
export default {
|
|
url: process.env.PG_DATABASE_URL,
|
|
type: 'postgres',
|
|
entities: [__dirname + '/src/core/**/*.entity{.ts,.js}'],
|
|
synchronize: false,
|
|
migrationsRun: false,
|
|
migrationsTableName: '_typeorm_migrations',
|
|
migrations: [__dirname + '/migrations/**/*{.ts,.js}'],
|
|
cli: {
|
|
migrationsDir: __dirname + '/migrations',
|
|
},
|
|
} as PostgresConnectionOptions;
|