Skip to content

Commit c6aeb57

Browse files
authored
fix: temporary fastly lookup domain patch (#118)
1 parent cfb1652 commit c6aeb57

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/server/lib/fastly.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ class Fastly {
3333

3434
async getFastlyUrl(): Promise<string> {
3535
const { domainDefaults } = await GlobalConfigService.getInstance().getAllConfigs();
36-
return `fastly.${domainDefaults.http}`;
36+
// TEMP PATCH:
37+
// Fastly services for current env are named under fastly.<base-domain> (without "lifecycle.").
38+
// This is an interim compatibility fix for lookup failures and should be reworked when
39+
// Fastly naming/configuration is moved to a dedicated integration.
40+
return `fastly.${domainDefaults.http.replace(/^lifecycle\./, '')}`;
3741
}
3842

3943
async getCacheKey(uuid: string, fastlyServiceType = ''): Promise<string> {

0 commit comments

Comments
 (0)