Skip to content

Commit 778b8d4

Browse files
committed
fix:Zi's q3sdb601jan192026zs
1 parent 927689e commit 778b8d4

File tree

6 files changed

+77
-26
lines changed

6 files changed

+77
-26
lines changed

packages/template-retail-react-app/app/components/_app-config/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const AppConfig = ({children, locals = {}}) => {
107107
defaultDnt={DEFAULT_DNT_STATE}
108108
// Set 'enablePWAKitPrivateClient' to true to use SLAS private client login flows.
109109
// Make sure to also enable useSLASPrivateClient in ssr.js when enabling this setting.
110-
enablePWAKitPrivateClient={false}
110+
enablePWAKitPrivateClient={true}
111111
privateClientProxyEndpoint={slasPrivateClientProxyEndpoint}
112112
// Uncomment 'hybridAuthEnabled' if the current site has Hybrid Auth enabled. Do NOT set this flag for hybrid storefronts using Plugin SLAS.
113113
// hybridAuthEnabled={true}

packages/template-retail-react-app/app/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ export const EINSTEIN_RECOMMENDERS = {
164164

165165
export const SHIPPING_COUNTRY_CODES = [
166166
{value: 'CA', label: 'Canada'},
167-
{value: 'US', label: 'United States'}
167+
{value: 'US', label: 'United States'},
168+
{value: 'FR', label: 'France'}
168169
]
169170

170171
// Constant to Enable Active Data

packages/template-retail-react-app/app/ssr.js

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const options = {
5151
// Set this to false if using a SLAS public client
5252
// When setting this to true, make sure to also set the PWA_KIT_SLAS_CLIENT_SECRET
5353
// environment variable as this endpoint will return HTTP 501 if it is not set
54-
useSLASPrivateClient: false,
54+
useSLASPrivateClient: true,
5555

5656
// If you wish to use additional SLAS endpoints that require private clients,
5757
// customize this regex to include the additional endpoints the custom SLAS
@@ -355,13 +355,31 @@ const {handler} = runtime.createHandler(options, (app) => {
355355
directives: {
356356
'img-src': [
357357
// Default source for product images - replace with your CDN
358-
'*.commercecloud.salesforce.com'
358+
'*.commercecloud.salesforce.com',
359+
'checkoutshopper-test.adyen.com',
360+
// Allow Google Pay specific images
361+
'https://www.gstatic.com/',
362+
'*.demandware.net',
363+
'*.sfcc-store-internal.net',
364+
's3.amazonaws.com',
365+
'https://*.exp-delivery.com',
366+
'https://*.exp-delivery-soak.com',
367+
'*.cc.salesforce.com'
359368
],
360369
'script-src': [
361370
// Used by the service worker in /worker/main.js
362371
'storage.googleapis.com',
363372
'maps.googleapis.com',
364-
'places.googleapis.com'
373+
'places.googleapis.com',
374+
'*.adyen.com',
375+
'https://checkoutshopper-test.adyen.com',
376+
'https://pay.google.com/gp/p/js/pay.js',
377+
'*.site.com',
378+
'*.commercecloud.com',
379+
'*.test1.my.pc-rnd.site.com',
380+
'*.test2.my.pc-rnd.site.com',
381+
'https://*.exp-delivery.com',
382+
'https://*.exp-delivery-soak.com'
365383
],
366384
'connect-src': [
367385
// Connect to Einstein APIs
@@ -371,11 +389,35 @@ const {handler} = runtime.createHandler(options, (app) => {
371389
'maps.googleapis.com',
372390
'places.googleapis.com',
373391
// Connect to SCRT2 URLs
374-
'*.salesforce-scrt.com'
392+
'*.salesforce-scrt.com',
393+
'*.site.com',
394+
'checkoutshopper-test.adyen.com',
395+
'*.pc-rnd.site.com',
396+
'*.test1.my.pc-rnd.salesforce-scrt.com',
397+
'*.test2.my.pc-rnd.salesforce-scrt.com',
398+
'*.test2.my.pc-rnd.site.com',
399+
'https://*.exp-delivery.com',
400+
'*.test1.my.pc-rn.site.com',
401+
'https://*.exp-delivery-soak.com',
402+
'https://pay.google.com'
375403
],
376404
'frame-src': [
377405
// Allow frames from Salesforce site.com (Needed for MIAW)
378-
'*.site.com'
406+
'*.site.com',
407+
'checkoutshopper-test.adyen.com',
408+
// Allow Google Pay Specific frames
409+
'https://pay.google.com'
410+
],
411+
'frame-ancestors': [
412+
'self',
413+
'https://*.test1.my.pc-rnd.site.com',
414+
'https://*.test2.my.pc-rnd.site.com',
415+
'https://*.mobify-storefront.com',
416+
'https://runtime.commercecloud.com',
417+
'https://*.exp-delivery.com',
418+
'https://*.exp-delivery-soak.com',
419+
'https://*.force.com',
420+
'https://*.lightning.force.com'
379421
]
380422
}
381423
}

packages/template-retail-react-app/config/default.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,20 @@ module.exports = {
4848
landingPath: '/reset-password-landing'
4949
}
5050
},
51-
defaultSite: 'RefArchGlobal',
51+
defaultSite: 'NTOManaged',
5252
siteAliases: {
5353
RefArch: 'us',
54-
RefArchGlobal: 'global'
54+
RefArchGlobal: 'global',
55+
NTOManaged: 'managed'
5556
},
5657
sites,
5758
commerceAPI: {
5859
proxyPath: `/mobify/proxy/api`,
5960
parameters: {
60-
clientId: 'c9c45bfd-0ed3-4aa2-9971-40f88962b836',
61-
organizationId: 'f_ecom_zzrf_001',
62-
shortCode: '8o7m175y',
63-
siteId: 'RefArchGlobal'
61+
clientId: 'a82b11ac-12a9-4347-8b86-2afd388634f1',
62+
organizationId: 'f_ecom_zaac_001',
63+
shortCode: 'sandbox-001',
64+
siteId: 'NTOManaged'
6465
}
6566
},
6667
einsteinAPI: {
@@ -108,11 +109,11 @@ module.exports = {
108109
ssrFunctionNodeVersion: '24.x',
109110
proxyConfigs: [
110111
{
111-
host: 'kv7kzm78.api.commercecloud.salesforce.com',
112+
host: 'sandbox-001.api.commercecloud.salesforce.com',
112113
path: 'api'
113114
},
114115
{
115-
host: 'zzrf-001.dx.commercecloud.salesforce.com',
116+
host: 'zaac-001.dx.commercecloud.salesforce.com',
116117
path: 'ocapi'
117118
}
118119
]

packages/template-retail-react-app/config/sites.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ module.exports = [
2525
]
2626
}
2727
},
28+
{
29+
id: 'NTOManaged',
30+
l10n: {
31+
supportedCurrencies: ['USD'],
32+
defaultCurrency: 'USD',
33+
defaultLocale: 'en-US',
34+
supportedLocales: [
35+
{
36+
id: 'en-US',
37+
preferredCurrency: 'USD'
38+
},
39+
{
40+
id: 'en-CA',
41+
preferredCurrency: 'USD'
42+
}
43+
]
44+
}
45+
},
2846
{
2947
id: 'RefArchGlobal',
3048
l10n: {

packages/template-retail-react-app/package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)