From 5c70730df26f9f36a24201ebe57f9e2dd86a2c42 Mon Sep 17 00:00:00 2001 From: johannathalmann-SAP Date: Thu, 30 Jan 2025 15:43:11 +0100 Subject: [PATCH] CXCDS-14100: npm run prettier fix. --- .../lib-configs/integration-libs/cds-schematics-config.ts | 8 +++++--- .../src/app/spartacus/features/cds/cds-feature.module.ts | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/projects/schematics/src/shared/lib-configs/integration-libs/cds-schematics-config.ts b/projects/schematics/src/shared/lib-configs/integration-libs/cds-schematics-config.ts index 8bf77d650e4..95f87b151d9 100644 --- a/projects/schematics/src/shared/lib-configs/integration-libs/cds-schematics-config.ts +++ b/projects/schematics/src/shared/lib-configs/integration-libs/cds-schematics-config.ts @@ -70,9 +70,11 @@ function buildCdsConfig( tenant: '${options.tenant || 'TENANT_PLACEHOLDER'}', baseUrl: '${options.baseUrl || 'BASE_URL_PLACEHOLDER'}', endpoints: { - strategyProducts: '${options.sciEnabled - ? '/strategy/v1/sites/\${baseSite}/strategies/\${strategyId}/products' - : '/strategy/\${tenant}/strategies/\${strategyId}/products'}', + strategyProducts: '${ + options.sciEnabled + ? '/strategy/v1/sites/${baseSite}/strategies/${strategyId}/products' + : '/strategy/${tenant}/strategies/${strategyId}/products' + }', searchIntelligence: '/search-intelligence/v1/sites/\${cdsSiteId}/trendingSearches', }, diff --git a/projects/storefrontapp/src/app/spartacus/features/cds/cds-feature.module.ts b/projects/storefrontapp/src/app/spartacus/features/cds/cds-feature.module.ts index a18c8fe8831..1b54eead17b 100644 --- a/projects/storefrontapp/src/app/spartacus/features/cds/cds-feature.module.ts +++ b/projects/storefrontapp/src/app/spartacus/features/cds/cds-feature.module.ts @@ -27,7 +27,6 @@ import { * @see CdsModule.forRoot */ - const cds1: CdsConfig = { cds: { baseSite: ['electronics-spa', 'electronics', 'electronics-standalone'], @@ -36,7 +35,8 @@ const cds1: CdsConfig = { profileTag: { javascriptUrl: 'https://tag.static.stage.context.cloud.sap/js/profile-tag.js', - configUrl: 'https://tag.static.stage.context.cloud.sap/config/mytenant-main-default', + configUrl: + 'https://tag.static.stage.context.cloud.sap/config/mytenant-main-default', allowInsecureCookies: true, }, },