关于 SAP Spartacus 服务器端渲染 SSR fallback 到 CSR 的疑问
I am working on SNOW ticket https://diablo.service-now.com/20210803/workspace/agent/record/sn_customerservice_case/7ef92e151b2db05463bc11718b4bcb08 and would like to reproduce from my side.
- I create a new store based on ^3.1.3 ( actual version 3.4.1, found in package-lock.json ) and only enabled B2C feature.
I create a new repo and make initial commit:
https://github.com/wangzixi-diablo/pureb2cstore/commit/3f978420b7a7530aa8f336ef580deaa551e0e3f1
- I switch on SSR support via schematics using command line: ng add @spartacus/schematics --ssr
I commit the change: https://github.com/wangzixi-diablo/pureb2cstore/commit/adc308dfdff21079494d6995402502100670470c
- I use ng serve to check if CSR still works after SSR is enabled. To my surprise, after SSR is enabled, I found CSR does not work any more, http://localhost:4203/electronics-spa/en/USD/ only shows empty page:
No HTTP error in console.
I know that in certain condition, SSR will fallback to CSR. So I would assume a storefront can still works in CSR mode by default even if it’s SSR enabled. Is my understanding correct?
According to our document:
https://sap.github.io/spartacus-docs/3.x/server-side-rendering-in-spartacus/#adding-ssr-support-using-schematics-recommended
use ng add @spartacus/schematics --ssr is enough and no further steps are required.
Do I miss something to make CSR work again after SSR is enabled by Schematics?
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- 关于 SAP UI5 对服务器端渲染 Server Sider Render 的支持问题
- 关于 SAP Fiori Elements 应用标题属性(title) 的复制逻辑单步调试
- 一个SAP UI5 TreeTable控件的错误分析
- 关于 SAP CRM 的 Partner Determination 和 organization determination
- 关于用 ABAP 代码手动触发 SAP CRM organization Model 自动决定的研究
- SAP CRM One Order关于索引表CRMD_ORDER_INDEX的一些性能问题的分析
- SAP ABAP实用技巧介绍系列之 ABAP XSLT select keyword
- SAP 电商云 Category Navigation 页面设计
- 关于 SAP 电商云 Spartacus UI 路由 routes 配置的数据源问题
- SAP Commerce Cloud Spartacus UI 4.0.1 版本的安装
- 关于 SAP Spartacus 支持不同的环境配置部署到 SAP Commerce Cloud 上的讨论
- 关于 SAP Spartacus UI 框架选型问题
- SAP Spartacus SSR模式启用失败的一个原因:SSR rendering exceeded timeout
- 关于SAP Spartacus ManageUnitsListComponent的一些试错
- SAP CRM category search的实现
- SAP HANA Database Explorer 里 SQL console 的用法
- SAP Commerce Cloud CMS 里的一些元素类型
- SAP UI5 应用开发教程之二十九 - SAP UI5 的路由和导航功能介绍试读版
- SAP UI5 初学者教程之三:开始接触第一个 SAP UI5 控件 试读版
- SAP fiori backend determine cache setting
- 如何处理SAP Fiori Launchpad KPI tile点击后出现的错误消息
- SAP OData 服务关于本地文件作为附件上传的一些错误消息
- 关于 SAP SEGW Project Type 的四种不同类型
- 关于 SAP Spartacus Shell App 客户应用的调试
- 关于 SAP Spartacus Shell App 客户应用的调试