Skip to content

Commit 33eb226

Browse files
unandyalaclaude
andcommitted
Add x-site-id header to _app-config generator templates
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dc16bff commit 33eb226

File tree

2 files changed

+4
-2
lines changed
  • packages/pwa-kit-create-app/assets
    • bootstrap/js/overrides/app/components/_app-config
    • templates/@salesforce/retail-react-app/app/components/_app-config

2 files changed

+4
-2
lines changed

packages/pwa-kit-create-app/assets/bootstrap/js/overrides/app/components/_app-config/index.jsx.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const AppConfig = ({children, locals = {}}) => {
5757
const {correlationId} = useCorrelationId()
5858
const headers = {
5959
'correlation-id': correlationId,
60-
sfdc_user_agent: sfdcUserAgent
60+
sfdc_user_agent: sfdcUserAgent,
61+
'x-site-id': locals.site?.id
6162
}
6263

6364
const commerceApiConfig = locals.appConfig.commerceAPI

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/app/components/_app-config/index.jsx.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const AppConfig = ({children, locals = {}}) => {
5757
const {correlationId} = useCorrelationId()
5858
const headers = {
5959
'correlation-id': correlationId,
60-
sfdc_user_agent: sfdcUserAgent
60+
sfdc_user_agent: sfdcUserAgent,
61+
'x-site-id': locals.site?.id
6162
}
6263

6364
const commerceApiConfig = locals.appConfig.commerceAPI

0 commit comments

Comments
 (0)