Skip to content

Commit 80341f3

Browse files
radhikagpt1208Radhika Gupta
andauthored
feat: add contentSourcePath to deliveryConfig schema (#1520)
JIRA: https://jira.corp.adobe.com/browse/SITES-41284 ## Problem - Multiple AEM CS sites can share the same Cloud Manager program and environment (e.g. insureshield.com, about.ups.com, parcelpro.com on p55671/e392469). - The existing lookup by programId+environmentId returns an arbitrary first match, causing Preflight to resolve the wrong site. ## Fix - Add `contentSourcePath` (the AEM content root, e.g. /content/aboutus) to the `deliveryConfig` schema, TypeScript interface, and documentation so it can serve as an additional discriminator. Thanks for contributing! Co-authored-by: Radhika Gupta <radhikagupta@Radhikas-MacBook-Pro-2.local>
1 parent 59e44f8 commit 80341f3

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/spacecat-shared-data-access/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ The `deliveryConfig` object on a Site stores delivery infrastructure details. It
170170
| `tenantId` | string | Cloud Manager tenant identifier (from `/program/{programId}` response) |
171171
| `ipAllowlistExists` | boolean | Whether the CM program has real IP allowlists configured (excludes default `0.0.0.0/32` entries) |
172172
| `preferContentApi` | boolean | Whether to prefer the Content API for content retrieval |
173+
| `contentSourcePath` | string | AEM content root path for a site. Used to disambiguate multiple sites that share the same Cloud Manager program and environment. Corresponds to `/content/<site-name>` in the AEM repository. |
173174

174175
## Architecture
175176

packages/spacecat-shared-data-access/src/models/site/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface DeliveryConfig {
5252
tenantId?: string;
5353
ipAllowlistExists?: boolean;
5454
imsOrgId?: string;
55+
contentSourcePath?: string;
5556
[key: string]: unknown;
5657
}
5758

packages/spacecat-shared-data-access/src/models/site/site.schema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const schema = new SchemaBuilder(Site, SiteCollection)
117117
tenantId: { type: 'string' },
118118
ipAllowlistExists: { type: 'boolean' },
119119
imsOrgId: { type: 'string' },
120+
contentSourcePath: { type: 'string' },
120121
},
121122
})
122123
.addAttribute('hlxConfig', {

0 commit comments

Comments
 (0)