From 2a1e266f0db7e508352c8a2abb1bed8cd6297107 Mon Sep 17 00:00:00 2001 From: suvarnakale Date: Mon, 11 Nov 2024 18:21:27 +0530 Subject: [PATCH 1/2] Issue #PS-2326 feat : Tracking for content consumption activated in admin app --- next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 409f16cb..f845750b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -77,6 +77,10 @@ const nextConfig = { source: "/action/asset/:path*", // Match other /action/asset routes destination: `${process.env.WORKSPACE_BASE_URL}/api/proxy?path=/action/asset/:path*`, // Forward other /action/asset requests to proxy.js }, + { + source: "/action/v1/telemetry", // Match any URL starting with /workspace/content/assets/ + destination: `${process.env.NEXT_PUBLIC_TELEMETRY_URL}/v1/telemetry`, // Serve the assets from the public folder + }, { source: "/action/content/:path*", // Match other /action/asset routes destination: `${process.env.WORKSPACE_BASE_URL}/api/proxy?path=/action/content/:path*`, // Forward other /action/asset requests to proxy.js From 767948a3b17dbc9f4f103804d65916824a734a71 Mon Sep 17 00:00:00 2001 From: suvarnakale Date: Mon, 11 Nov 2024 18:23:28 +0530 Subject: [PATCH 2/2] Issue #PS-2326 feat : comments removed --- next.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index f845750b..0e649762 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -78,8 +78,8 @@ const nextConfig = { destination: `${process.env.WORKSPACE_BASE_URL}/api/proxy?path=/action/asset/:path*`, // Forward other /action/asset requests to proxy.js }, { - source: "/action/v1/telemetry", // Match any URL starting with /workspace/content/assets/ - destination: `${process.env.NEXT_PUBLIC_TELEMETRY_URL}/v1/telemetry`, // Serve the assets from the public folder + source: "/action/v1/telemetry", + destination: `${process.env.NEXT_PUBLIC_TELEMETRY_URL}/v1/telemetry`, }, { source: "/action/content/:path*", // Match other /action/asset routes