Skip to content

feat: AM2.0 suppport in config module#2387

Open
naman-contentstack wants to merge 1 commit intov2-beta-devfrom
enhancement/DX-4443
Open

feat: AM2.0 suppport in config module#2387
naman-contentstack wants to merge 1 commit intov2-beta-devfrom
enhancement/DX-4443

Conversation

@naman-contentstack
Copy link
Contributor

Add Asset Management URL Configuration Support

Adds support for configuring a custom asset management API endpoint in the CLI region configuration, following the same pattern as other service URLs (composableStudioUrl, personalizeUrl, launchHubUrl).

Changes

  • Added assetManagementUrl property to the Region interface (optional for backward compatibility)
  • Added --asset-management flag to config:set:region command
  • Auto-generates asset management URL from UI host by appending /am/api when flag is not provided
  • Updated region handler utilities to include asset management URL in sanitization and retrieval
  • Added success messages and command examples

Behavior

  • If --asset-management flag is provided: Uses the provided URL as-is
  • If flag is not provided: Auto-generates from uiHost + '/am/api' (e.g., https://dev9-app.csnonprod.com:443/am/api)

Context

This is the first step in supporting external asset management projects where assets will be linked to external projects instead of being saved directly in the stack during export operations.

@naman-contentstack naman-contentstack self-assigned this Feb 12, 2026
@naman-contentstack naman-contentstack requested a review from a team as a code owner February 12, 2026 12:58
Comment on lines +116 to +120
if (!assetManagementUrl) {
// Use UI host as base and append /am/api
const baseUrl = uiHost.replace(/\/$/, ''); // Remove trailing slash if present
assetManagementUrl = `${baseUrl}/am/api`;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @naman-contentstack can we move this conversion of baseUrl to assetManagementurl into transformUrl.
Can we use CMA api to transform it into AM api?
cc: @aman19K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants