diff --git a/server/database/cli_config.ts b/server/database/cli_config.ts index 44a1883..4e45bb3 100644 --- a/server/database/cli_config.ts +++ b/server/database/cli_config.ts @@ -15,6 +15,7 @@ export = process.env.NODE_ENV === 'development' entities: ['server/entities/**/*.entity.ts'], } : { + type: 'postgres', url: process.env.DATABASE_URL, ssl: { rejectUnauthorized: true }, migrations: ['server/database/migrations/*.ts'], diff --git a/server/database/config.ts b/server/database/config.ts index 80f479a..757abc8 100644 --- a/server/database/config.ts +++ b/server/database/config.ts @@ -11,6 +11,7 @@ export const config: TypeOrmModuleOptions = autoLoadEntities: true, } : { + type: 'postgres', url: process.env.DATABASE_URL, ssl: { rejectUnauthorized: true }, };