Skip to content

Commit

Permalink
fix: project name, proxy, sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 17, 2024
1 parent f3bee41 commit 1a3eed9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 22 deletions.
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 2 additions & 12 deletions proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,15 @@ const bypassFn = function (req, res) {
}

const PROXY_CONFIG = {
'/themes-bff': {
'/theme-bff': {
target: 'http://onecx-theme-bff',
secure: false,
pathRewrite: {
'^.*/themes-bff': ''
'^.*/theme-bff': ''
},
changeOrigin: true,
logLevel: 'debug',
bypass: bypassFn
},
'/ahm-api': {
target: 'http://ahm',
secure: false,
pathRewrite: {
'^.*/ahm-api': ''
},
changeOrigin: true,
logLevel: 'debug',
bypass: logFn
}
}

Expand Down
2 changes: 1 addition & 1 deletion sonar-local-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sonar.testExecutionReportPaths=reports/sonarqube_report.xml
sonar.sourceEncoding=UTF-8
#sonar.sources=src/app
#sonar.working.directory=dist/sonar
sonar.coverage.exclusions=*.ts,*.js,src/*.ts,src/**/*.module.ts,src/environments/*,src/assets/**/*,src/app/generated/**/*,src/test/*
sonar.coverage.exclusions=*.ts,*.js,src/*.ts,src/**/*.module.ts,src/environments/*,src/assets/**/*,src/app/generated/**/*,src/app/test/*
#sonar.exclusions=src/app/generated/**/*
#sonar.cpd.exclusions=
#sonar.tests=src/app
Expand Down
4 changes: 2 additions & 2 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const environment = {
production: true,
BASE_PATH: '/themes-bff',
apiPrefix: 'themes-bff'
BASE_PATH: '/theme-bff',
apiPrefix: 'theme-bff'
}
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
KEYCLOAK_CLIENT_ID: 'portal-mf-shell',
TKIT_PORTAL_ID: 'ADMIN',
skipRemoteConfigLoad: true,
apiPrefix: 'themes-bff'
apiPrefix: 'theme-bff'
}

/*
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { ModifyEntryPlugin } = require('@angular-architects/module-federation/src
const { share, withModuleFederationPlugin } = require('@angular-architects/module-federation/webpack')

const config = withModuleFederationPlugin({
name: 'theme-mgmt-ui',
name: 'onecx-theme-ui',
filename: 'remoteEntry.js',
exposes: {
'./ThemeMgmtModule': 'src/app/theme-mgmt-remote.module.ts'
Expand Down

0 comments on commit 1a3eed9

Please sign in to comment.