From ec563c2e9341e97a10600e3f54f55f5db8908c7a Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 4 Jul 2026 19:44:40 +0700 Subject: [PATCH] fix(api): production config was not reflected --- apps/api/project.json | 3 +++ apps/api/webpack.config.js | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/api/project.json b/apps/api/project.json index d6c3171e1..c4c1be7ac 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -7,6 +7,9 @@ "generators": {}, "targets": { "build": { + "configurations": { + "production": {} + }, "outputs": ["{workspaceRoot}/dist/apps/api"] }, "copy-assets": { diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js index d5b07e73c..5a882bb8e 100644 --- a/apps/api/webpack.config.js +++ b/apps/api/webpack.config.js @@ -7,7 +7,6 @@ const configValues = { default: { compiler: 'tsc', deleteOutputPath: false, - generatePackageJson: true, main: './src/main.ts', outputPath: 'dist/apps/api', outputHashing: 'none', @@ -16,15 +15,16 @@ const configValues = { tsConfig: './tsconfig.app.json' }, production: { - optimization: true, extractLicenses: true, - inspect: false, fileReplacements: [ { replace: './src/environments/environment.ts', with: './src/environments/environment.prod.ts' } - ] + ], + generatePackageJson: true, + inspect: false, + optimization: true } } };