Skip to content

Migrate optimize mixin to KP #77020

@pgayvallet

Description

@pgayvallet

The optimize mixin needs to be migrated out of legacy.

// setup routes that serve the @kbn/optimizer output
optimizeMixin,

export const optimizeMixin = async (
kbnServer: KbnServer,
server: Hapi.Server,
config: KibanaConfig
) => {
server.route(
createBundlesRoute({
basePublicPath: config.get('server.basePath'),
npUiPluginPublicDirs: getNpUiPluginPublicDirs(kbnServer),
buildHash: kbnServer.newPlatform.env.packageInfo.buildNum.toString(),
isDist: kbnServer.newPlatform.env.packageInfo.dist,
})
);
};

I don't see that being in a plugin, so I guess it should be moved to core? wdyt @elastic/kibana-operations

Metadata

Metadata

Assignees

Labels

Feature:Legacy RemovalIssues related to removing legacy KibanaTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions