From f7d0b44159ad98aab7b00a06e652bdfcd68ff250 Mon Sep 17 00:00:00 2001 From: Oliver Gupte Date: Mon, 22 May 2023 15:20:21 -0400 Subject: [PATCH] uses the static asset path provided for plugins for the downloaded setup script --- packages/core/apps/core-apps-server-internal/src/core_app.ts | 5 ----- .../server/routes/custom_logs/route.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/core/apps/core-apps-server-internal/src/core_app.ts b/packages/core/apps/core-apps-server-internal/src/core_app.ts index 25a7c124a91a0..c50ddd6e5cc1f 100644 --- a/packages/core/apps/core-apps-server-internal/src/core_app.ts +++ b/packages/core/apps/core-apps-server-internal/src/core_app.ts @@ -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') - ); } } diff --git a/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts b/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts index 56fc988b01f97..b5b05bb63544b 100644 --- a/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts +++ b/x-pack/plugins/observability_onboarding/server/routes/custom_logs/route.ts @@ -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,