Skip to content

Commit 7fff71d

Browse files
authored
Merge pull request #2101 from SalesforceCommerceCloud/hotfix/restore-ocapi-proxy
[Hotfix] Restore OCAPI proxy in config
2 parents 09d383a + fcc76e9 commit 7fff71d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/config/default.js.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ module.exports = {
7373
{
7474
host: '{{answers.project.commerce.shortCode}}.api.commercecloud.salesforce.com',
7575
path: 'api'
76-
}
76+
}{{~#if answers.project.commerce.instanceUrl}},
77+
{
78+
host: '{{answers.project.commerce.instanceUrl}}',
79+
path: 'ocapi'
80+
}{{/if}}
7781
]
7882
}
7983
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ module.exports = {
5555
{
5656
host: 'kv7kzm78.api.commercecloud.salesforce.com',
5757
path: 'api'
58+
},
59+
{
60+
host: 'zzrf-001.dx.commercecloud.salesforce.com',
61+
path: 'ocapi'
5862
}
5963
]
6064
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ module.exports = {
112112
{
113113
host: 'localhost:8888',
114114
path: 'api'
115+
},
116+
{
117+
host: 'localhost:9999',
118+
path: 'ocapi'
115119
}
116120
]
117121
}

0 commit comments

Comments
 (0)