在将 Hybris smartedit 配置为在静态 Web 服务器(在我的情况下为 Azure 存储帐户)中使用已编译的 Spartacus 时,smartedit 获取对 /cx-preview?cmsTicketId=... 的 URL 引用。这会导致 HTTP 404,因为没有这样的文件可用.
我通过运行编译了斯巴达克斯
构建
目前,我的解决方法是运行一个专用的虚拟机
服务
并安装了所有需要的依赖项。但这仅适用于开发用途。
我已按照https://sap.github.io/cloud-commerce-spartacus-storefront-docs/smartEdit-setup-instructions-for-spartacus/#page-title中的说明进行操作,最后一步作为 Azure 存储帐户只能保存静态内容。
Spartacus UI 在 Azure 存储帐户中运行良好