Closed moritzraho closed 9 months ago
relates to #52
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-898
Reopening because #66 did not solve the case of using non-prod TVMs, the TVM should return the CDN host name. Which would fix this transparently
Closing this stale issue as https://github.com/adobe/aio-lib-files/pull/90 brought support for our stage TVM.
Actual behavior
The CDN domain is fixed (see https://github.com/adobe/aio-lib-files/blob/master/lib/impl/AzureBlobFiles.js#L29) and points to the Adobe I/O Firefly CDN, this is a problem if the user is bringing his own storage via
Files.init({ azure: <storage creds> })
as URLs would be broken.Expected behavior
~Support for a custom CDN host option on files init, e.g.
Files.init({ host: 'mycdn.domain' })
~ EDIT: Let the TVM return the hostname as part of the credentials, as the logic handling this is already added by #66Why