Skip to content

Commit

Permalink
chore: typeorm.conifg.ts 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHyeon0409 committed Nov 6, 2024
1 parent 2a51227 commit 8429fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
branches:
- main
- dev-be
- dev-fe

jobs:
build_and_deploy:
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/configs/typeorm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function getTypeOrmConfig(): Promise<TypeOrmModuleOptions>
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
entities: [__dirname + '/../**/*.entity.{js,ts}'],
synchronize: false,
synchronize: Boolean(process.env.DB_SYNCHRONIZE),
};
}

Expand Down

0 comments on commit 8429fd1

Please sign in to comment.