且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-09-04 19:11:57

You can try running “yarn build:s-s-r” and “yarn serve:s-s-r” locally to validate that s-s-r 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 s-s-r is working correctly.

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

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 “s-s-r rendering exceeded timeout, fallbacking to CSR for” it means s-s-r is functioning correctly but for performance, reason rendered the CSR page.Regards,Louis