Skip to content

Commit

Permalink
[revise]: revise app.module.ts for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
IMHOJEONG committed Dec 30, 2023
1 parent 871a1b4 commit ec9f447
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/pwrcode-backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { SearchModule } from './modules/search/search.module';
@Module({
imports: [
ConfigModule.forRoot({
envFilePath: ['.env.development', '.env.production'],
// envFilePath: ['.env.development', '.env.production'],
envFilePath: [(process.env.NODE_ENV === 'production') ? '.env.production' : '.env.development'],
}),
TypeOrmModule.forRoot({
type: 'mysql',
Expand Down

0 comments on commit ec9f447

Please sign in to comment.