https://github.com/SAP/spartacus/issues/10638
错误消息:SSR rendering exceeded timeout, fallbacking to CSR for /解决方案
it’s a side effect of a new of SSR optimization feature available in Spartacus 3.0 and up.
It is possible to either extend the timeout in server.ts (passing a second parameter to NgExpressEngineDecorator.get method) or set it to 0, so it won’t be fallbacking to CSR at all. Here is an example:You can use API documentation to get a list of available options:
https://sap.github.io/spartacus/interfaces/SsrOptimizationOptions.html
Additionally, an extended documentation regarding this feature and best practices is on its way.
也可以参考这个文档,进行SAP Spartacus SSR的调试:
How to Debug a Server–Side Rendered Storefront