我正在尝试让 api 在 Azure VM 上运行。该网址将不再存在https://localhost:9002/rest/v2/ext/basestores/ext
,但是otherUrl:9002/rest/v2/ext/basestores/ext
.
有人能告诉我在哪里找那个吗?
非常感谢 :)
我正在尝试让 api 在 Azure VM 上运行。该网址将不再存在https://localhost:9002/rest/v2/ext/basestores/ext
,但是otherUrl:9002/rest/v2/ext/basestores/ext
.
有人能告诉我在哪里找那个吗?
非常感谢 :)
不确定我是否正确地回答了您的问题,但至少从斯巴达克斯的角度来看,您可以backend.occ.baseUrl
为您需要的任何 URL 定义配置。
这是基本示例:
B2cStorefrontModule.withConfig({
backend: {
occ: {
baseUrl: 'https://localhost:9002',
prefix: '/rest/v2/'
}
},
}),
以下是如何设置 Spartacus 的文档: https ://sap.github.io/cloud-commerce-spartacus-storefront-docs/building-the-spartacus-storefront-from-libraries/#adding-import-declarations-和店面配置设置
与hybris无关。在您的主机文件中添加一个条目-
127.0.0.1 其他网址