Skip to content

Commit

Permalink
uses the static asset path provided for plugins for the downloaded se…
Browse files Browse the repository at this point in the history
…tup script
  • Loading branch information
ogupte committed May 22, 2023
1 parent 678f9bd commit f7d0b44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions packages/core/apps/core-apps-server-internal/src/core_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,5 @@ export class CoreAppsService {
'/node_modules/@kbn/ui-framework/dist/{path*}',
fromRoot('node_modules/@kbn/ui-framework/dist')
);

core.http.registerStaticDir(
'/observabilityOnboarding/{path*}',
fromRoot('x-pack/plugins/observability_onboarding/public/assets')
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const createApiKeyRoute = createObservabilityOnboardingServerRoute({
const coreStart = await core.start();
const scriptDownloadUrl = getKibanaUrl(
coreStart,
'/observabilityOnboarding/standalone_agent_setup.sh'
'/plugins/observabilityOnboarding/assets/standalone_agent_setup.sh'
);
const apiEndpoint = getKibanaUrl(
coreStart,
Expand Down

0 comments on commit f7d0b44

Please sign in to comment.