feat: AM2.0 suppport in config module#2387
Open
naman-contentstack wants to merge 1 commit intov2-beta-devfrom
Open
feat: AM2.0 suppport in config module#2387naman-contentstack wants to merge 1 commit intov2-beta-devfrom
naman-contentstack wants to merge 1 commit intov2-beta-devfrom
Conversation
cs-raj
reviewed
Feb 13, 2026
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`; | ||
| } |
Contributor
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
assetManagementUrlproperty to theRegioninterface (optional for backward compatibility)--asset-managementflag toconfig:set:regioncommand/am/apiwhen flag is not providedBehavior
--asset-managementflag is provided: Uses the provided URL as-isuiHost + '/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.