https://localhost:9002/smartedit/

https://localhost:9002/backoffice/

backoffice 里,把 Spartacus website 的 WCMS cockpit preview url,改成本地 Spartacus url:

http://localhost:4299/powertools-spa

注意把前面的 https 去掉。
SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

确保这个 url 本地访问没有问题。

SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

点击 Pages,创建新的页面:
SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

当 Storefront 无法渲染时,首先检查 SPA Powertools 这个 site 在 Backoffice WCMS 里的设置是否正确:

SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

打开 Spartacus powertools Site,切换到 WCMS properties,检查 WCMS Cockpit Preview URL:

SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

这个 URL 必须在本地可以访问才行:

SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

https://localhost:4200/powertools-spa/cx-preview?cmsTicketId=64786709435278243002ec36-76cc-41c1-9ede-3ef27f2b6b17

http://localhost:4200/powertools-spa/cx-preview?cmsTicketId=64786709435278243002ec36-76cc-41c1-9ede-3ef27f2b6b17

SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

更多Jerry的原创文章,尽在:"汪子熙":
SAP 电商云 Spartacus UI 和 SmartEdit 本地测试环境

相关文章: