adobe / spacecat-api-service

Edge Delivery services experience success as a service automation: SpaceCat + Star Catalogue
Apache License 2.0
3 stars 1 forks source link

feat: add hlx config to site detection #377

Closed solaris007 closed 2 days ago

solaris007 commented 3 days ago

For CDN-based site detection, evaluate helix domain from x-fwd-host header, extract edge config and cdn host. requires adaptation of site candidate and site data model, WIP.

The suggestion is to store an abbreviated edge config with the site candidate:

{
  "hlxVersion": 5
  "cdnProdHost": "www.example.com"
  "code": {},
  "content": {},
  "rso": {
    "site": "example"
    "owner": "exampleHlxOrg",
    "ref": "main"
  }
}

If a site candidate is accepted, we'd store the edge config as part of the site as well.

github-actions[bot] commented 2 days ago

This PR will trigger a minor release when merged.

solaris007 commented 2 days ago

:tada: This PR is included in version 1.51.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: