@bytebrand/export-cars 1.26.6 → 1.26.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -189,12 +189,13 @@ export class ImagesService {
|
|
|
189
189
|
return ignoreDefImages ? [] : [...this.DEFAULT_IMAGES];
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
// marketingImageUrl
|
|
193
|
-
//
|
|
194
|
-
//
|
|
195
|
-
//
|
|
192
|
+
// marketingImageUrl AND config.imageUrl (FbConfig overrides the latter to the same
|
|
193
|
+
// per-env value right after super()) both point at the old "fb" channel's base path
|
|
194
|
+
// (/cache_test on dev, already /generated_images on prod) — not where image-generator
|
|
195
|
+
// publishes meta_aia composites. baseImageUrl is the one field neither Config nor FbConfig
|
|
196
|
+
// ever suffixes with a path, so it's the only safe base to build /generated_images on.
|
|
196
197
|
const imageUrl = config.channelCode === 'meta_aia'
|
|
197
|
-
? `${this.configService.config.
|
|
198
|
+
? `${this.configService.config.baseImageUrl}/generated_images`
|
|
198
199
|
: this.configService.config.marketingImageUrl;
|
|
199
200
|
|
|
200
201
|
const marketingImageConfigs = config.marketingImages.map(i => ({ marketingImageCodes: i.imageCodes }));
|