Skip to content

Commit f58a8bf

Browse files
error handling
1 parent ee0cb67 commit f58a8bf

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ 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: true,
54+
useSLASPrivateClient: false,
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
5858
// private client secret handler will inject an Authorization header.
5959
// The default regex is defined in this file: https://github.com/SalesforceCommerceCloud/pwa-kit/blob/develop/packages/pwa-kit-runtime/src/ssr/server/build-remote-server.js
60-
applySLASPrivateClientToEndpoints:
61-
/\/oauth2\/(token|passwordless\/(login|token)|password\/(reset|action))/,
60+
// applySLASPrivateClientToEndpoints:
61+
// /\/oauth2\/(token|passwordless\/(login|token)|password\/(reset|action))/,
62+
6263

6364
// If this is enabled, any HTTP header that has a non ASCII value will be URI encoded
6465
// If there any HTTP headers that have been encoded, an additional header will be

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ module.exports = {
5757
commerceAPI: {
5858
proxyPath: `/mobify/proxy/api`,
5959
parameters: {
60-
clientId: '0a8b812d-544f-4b21-b776-4fad19a15ab5',
61-
organizationId: 'f_ecom_bldp_dev',
62-
shortCode: 'sandbox-001',
60+
clientId: 'c9c45bfd-0ed3-4aa2-9971-40f88962b836',
61+
organizationId: 'f_ecom_zzrf_001',
62+
shortCode: '8o7m175y',
6363
siteId: 'RefArchGlobal'
6464
}
6565
},
@@ -74,9 +74,11 @@ module.exports = {
7474
appSourceId: '7ae070a6-f4ec-4def-a383-d9cacc3f20a1',
7575
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
7676
},
77-
// Note: this feature is in Developer Preview at this time. To use One Click Checkout, enable the oneClickCheckout flag and configure private SLAS client.
77+
// Note: this feature is in Developer Preview at this time. To use One Click Checkout,
78+
// enable the oneClickCheckout flag and configure private SLAS client. For more details, please
79+
// check https://github.com/SalesforceCommerceCloud/pwa-kit/releases/tag/v3.16.0
7880
oneClickCheckout: {
79-
enabled: true
81+
enabled: false
8082
},
8183
partialHydrationEnabled: false,
8284
pages: {
@@ -106,11 +108,11 @@ module.exports = {
106108
ssrFunctionNodeVersion: '22.x',
107109
proxyConfigs: [
108110
{
109-
host: 'sandbox-001.api.commercecloud.salesforce.com',
111+
host: 'kv7kzm78.api.commercecloud.salesforce.com',
110112
path: 'api'
111113
},
112114
{
113-
host: 'bldp_dev.dx.commercecloud.salesforce.com',
115+
host: 'zzrf-001.dx.commercecloud.salesforce.com',
114116
path: 'ocapi'
115117
}
116118
]

0 commit comments

Comments
 (0)