mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
attempting to make docker package smaller, and take less memory
This commit is contained in:
@ -2,20 +2,25 @@ import { Module } from '@nestjs/common';
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
|
||||
import { Resume } from '@/resume/entities/resume.entity';
|
||||
import { User } from '@/users/entities/user.entity';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forRootAsync({
|
||||
imports: [ConfigModule],
|
||||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService) => ({
|
||||
useFactory: async (configService: ConfigService) => ({
|
||||
type: 'postgres',
|
||||
host: configService.get<string>('postgres.host'),
|
||||
port: configService.get<number>('postgres.port'),
|
||||
username: configService.get<string>('postgres.username'),
|
||||
password: configService.get<string>('postgres.password'),
|
||||
database: configService.get<string>('postgres.database'),
|
||||
synchronize: configService.get<string>('app.environment') === 'development',
|
||||
autoLoadEntities: true,
|
||||
synchronize: true,
|
||||
entities: [User, Resume],
|
||||
migrations: [__dirname + 'migrations'],
|
||||
cli: { migrationsDir: __dirname + 'migrations' },
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
||||
0
apps/server/src/database/migrations/.gitkeep
Normal file
0
apps/server/src/database/migrations/.gitkeep
Normal file
@ -5,7 +5,7 @@ import { mkdir, unlink, writeFile } from 'fs/promises';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { join } from 'path';
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import { Browser, chromium } from 'playwright';
|
||||
import { Browser, chromium } from 'playwright-chromium';
|
||||
|
||||
export const DELETION_TIME = 10 * 1000; // 10 seconds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user