Browse Source

fix(api): file replacements was not working

pull/7198/head
KenTandrian 1 week ago
parent
commit
a564329eb8
  1. 8
      apps/api/webpack.config.js

8
apps/api/webpack.config.js

@ -1,4 +1,5 @@
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin'); const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
const path = require('path');
// These options were migrated by @nx/webpack:convert-to-inferred from // These options were migrated by @nx/webpack:convert-to-inferred from
// the project.json file and merged with the options in this file // the project.json file and merged with the options in this file
@ -18,8 +19,11 @@ const configValues = {
extractLicenses: true, extractLicenses: true,
fileReplacements: [ fileReplacements: [
{ {
replace: './src/environments/environment.ts', replace: path.resolve(__dirname, './src/environments/environment.ts'),
with: './src/environments/environment.prod.ts' with: path.resolve(
__dirname,
'./src/environments/environment.prod.ts'
)
} }
], ],
generatePackageJson: true, generatePackageJson: true,

Loading…
Cancel
Save