Skip to content

Commit

Permalink
Issue #PS-2326 feat : Tracking for content consumption activated in a…
Browse files Browse the repository at this point in the history
…dmin app
  • Loading branch information
suvarnakale committed Nov 11, 2024
1 parent 9ff1f2f commit 2a1e266
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a1e266

Please sign in to comment.