Skip to content

Commit 99b9e09

Browse files
committed
changes webpack configuration
1 parent 6d8dfc5 commit 99b9e09

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ typings/
6161
# ormconfig files
6262
ormconfig*.json
6363

64+
# build folder
65+
dist
66+
6467
# next.js build output
6568
.next
6669

src/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import { CorsMiddleware } from './middlewares/cors/cors.middleware';
2929
import { ConfigModule, ConfigService } from '@nestjs/config';
3030
import { CatalogModule } from './catalog/catalog.module';
3131
import { AuthModule } from './auth/auth.module';
32-
import databaseConfiguration from 'config/database/database.configuration';
33-
import thirdpartyConfiguration from 'config/thirdparty/thirdparty.configuration';
32+
import databaseConfiguration from './config/database/database.configuration';
33+
import thirdpartyConfiguration from './config/thirdparty/thirdparty.configuration';
3434

3535
@Module({
3636
imports: [

src/config/database/database.configuration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const configurations = {
4040
username: process.env.DB_USERNAME,
4141
password: process.env.DB_PASSWORD,
4242
database: process.env.DB_DATABASE,
43+
entities: ['dist/models/**{.ts,.js}'],
4344
synchronize: false,
4445
},
4546
};

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
target: 'node',
99
externals: [
1010
nodeExternals({
11-
whitelist: ['webpack/hot/poll?1000'],
11+
allowlist: ['webpack/hot/poll?1000'],
1212
}),
1313
],
1414
module: {

0 commit comments

Comments
 (0)