mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
updating to disable debug info when environment name is set to production
This commit is contained in:
parent
39728089d1
commit
268fdb5cbe
2 changed files with 4 additions and 2 deletions
|
@ -69,7 +69,7 @@ export default async (kbnServer, server, config) => {
|
|||
buildSha: config.get('pkg.buildSha'),
|
||||
basePath: config.get('server.basePath'),
|
||||
serverName: config.get('server.name'),
|
||||
devMode: config.get('env.dev'),
|
||||
envName: config.get('env.name'),
|
||||
uiSettings: {
|
||||
defaults: await server.uiSettings().getDefaults(),
|
||||
user: {}
|
||||
|
|
4
src/ui/public/chrome/api/angular.js
vendored
4
src/ui/public/chrome/api/angular.js
vendored
|
@ -34,7 +34,9 @@ module.exports = function (chrome, internals) {
|
|||
}()))
|
||||
.config(chrome.$setupXsrfRequestInterceptor)
|
||||
.config(['$compileProvider', function ($compileProvider) {
|
||||
if (!internals.devMode) $compileProvider.debugInfoEnabled(false);
|
||||
if (internals.envName === 'production') {
|
||||
$compileProvider.debugInfoEnabled(false);
|
||||
}
|
||||
}])
|
||||
.run(($location, $rootScope, Private) => {
|
||||
chrome.getFirstPathSegment = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue