Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
docs: add comment to remember how to use another target in prod mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gcusnieux authored and phiz71 committed Oct 27, 2021
1 parent 8e50e91 commit 59edd20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gravitee-apim-console-webui/scripts/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const app = express();
app.use(compression());
app.use(express.static('dist/'));
app.use('/management', createProxyMiddleware({ target: 'http://localhost:8083', changeOrigin: true }));

// If you want to try webapp with an other target
// app.use('/management', createProxyMiddleware({ target: 'https://apim-master-api.cloud.gravitee.io', changeOrigin: true, secure: false }));
app.all('/*', (req, res) => {
res.sendFile('index.html', { root: 'dist/' });
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ class ApiHealthCheckConfigureController {
this.$scope.formApiHealthCheckResponse.$setPristine();
this.$rootScope.$broadcast('apiChangeSuccess', { api: this.api });

const notification = this.endpoint ?
`Health-check configuration for endpoint [${this.endpoint.name}] has been updated` :
'Global health-check configuration has been updated';
const notification = this.endpoint
? `Health-check configuration for endpoint [${this.endpoint.name}] has been updated`
: 'Global health-check configuration has been updated';

this.NotificationService.show(notification);
});
Expand Down

0 comments on commit 59edd20

Please sign in to comment.