如何判断当前的SAP Spartacus已经运行在SSR模式,而不是PWA模式下了
如果一個(gè)產(chǎn)品的價(jià)格頻繁變化,則價(jià)格字段不應(yīng)該支持 SSR,keep as a place holder and let it rendered by CSR.
需要客戶自開(kāi)發(fā)。
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.
下圖是PWA模式下的首頁(yè):
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
更多Jerry的原創(chuàng)文章,盡在:“汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的如何判断当前的SAP Spartacus已经运行在SSR模式,而不是PWA模式下了的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 云梦四时歌猫将军值得培养吗 毛将军实用性
- 下一篇: 最强蜗牛兰奢待怎么得 贵重物品图鉴大全