Skip to content

Commit

Permalink
fix: 디비 synchronize 는 실섭에서만 하자고
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaemy committed Mar 6, 2023
1 parent 23a654e commit 0f88188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/typeorm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export const generateTypeOrmConfig: GenerateTypeOrmConfig = env => ({
username: env.DATABASE_USERNAME,
password: env.DATABASE_PASSWORD,
database: env.DATABASE_NAME,
synchronize: env.NODE_ENV === 'development',
synchronize: env.NODE_ENV === 'production',
autoLoadEntities: true,
});

0 comments on commit 0f88188

Please sign in to comment.