Skip to content

Commit

Permalink
feat: 환경별 데이터베이스 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Jan 8, 2024
1 parent 5332b09 commit b6e9622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/database.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
synchronize: process.env.NODE_ENV !== 'production',
schema:
process.env.NODE_ENV !== 'production'
? 'development'
? 'public'
: process.env.KUBE_ENV ?? 'development',
logging: process.env.NODE_ENV !== 'production',
entities: [__dirname + './../**/**.entity{.ts,.js}'],
Expand Down

0 comments on commit b6e9622

Please sign in to comment.