如何判断当前的SAP Spartacus已经运行在SSR模式,而不是PWA模式下了

简介: 如何判断当前的SAP Spartacus已经运行在SSR模式,而不是PWA模式下了

You can try running “yarn build:ssr” and “yarn serve:ssr” locally to validate that SSR mode is working.


Once you run the serve command and visit the site, you should be able to see that your first HTML request contains some data rather than just a blank page. This would signify that SSR is working correctly.

image.pngimage.png

After you have confirmation locally, you can go ahead and try a deployment to CCv2.


You can follow the steps on the SAP Help Portal https://help.sap.com/viewer/b2f400d4c0414461a4bb7e115dccd779/v2005/en-US/cd5b94c25a68456ba5840f942f33f68b.html. Once your deployment is done you can validate it in the same way you did locally.


If you see a blank page rather than a page with data you can take a look at Kibana for your JS Storefront service. If you see a log like “SSR rendering exceeded timeout, fallbacking to CSR for” it means SSR is functioning correctly but for performance, reason rendered the CSR page.Regards,Louis


目录
相关文章
|
4月前
|
前端开发 JavaScript 开发者
Spartacus 2211 客户成功启用 SSR
Spartacus 2211 客户成功启用 SSR
|
4月前
|
缓存 前端开发 JavaScript
Spartacus SSR 使用场景里,CDN 应该 cache 哪些类型的页面
Spartacus SSR 使用场景里,CDN 应该 cache 哪些类型的页面
|
4月前
|
JavaScript 中间件 API
Spartacus 2211 启用 SSR
Spartacus 2211 启用 SSR
|
4月前
|
前端开发
问题解答:SAP UI5 应用设置禁止被其他应用嵌入运行的工作原理解析试读版
问题解答:SAP UI5 应用设置禁止被其他应用嵌入运行的工作原理解析试读版
|
4月前
|
Web App开发 开发者
5. 问题解答:SAP Fiori Launchpad 点了 Logout 之后,背后都运行了哪些代码
5. 问题解答:SAP Fiori Launchpad 点了 Logout 之后,背后都运行了哪些代码
|
4月前
|
前端开发 API UED
Spartacus SSR 期间使用 browser function 会导致 error,回退到 CSR
Spartacus SSR 期间使用 browser function 会导致 error,回退到 CSR
|
4月前
|
存储 缓存 前端开发
关于 SAP Spartacus Optimization Engine 里的 cache 参数使用注意事项
关于 SAP Spartacus Optimization Engine 里的 cache 参数使用注意事项
|
4月前
|
测试技术 API
使用 jMeter 给 Spartacus SSR 发送 100 个并发的 SSR 请求,全部被 SSR 响应了
使用 jMeter 给 Spartacus SSR 发送 100 个并发的 SSR 请求,全部被 SSR 响应了
|
4月前
|
存储 前端开发 搜索推荐
Spartacus SSR fallback 成 CSR 时,仍然会在后端继续保持渲染
Spartacus SSR fallback 成 CSR 时,仍然会在后端继续保持渲染
|
4月前
|
JSON 开发者 数据格式
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现
关于 SAP Spartacus LandingPage2Template 区域的 layout 设计实现