zl程序教程

您现在的位置是:首页 >  其他

当前栏目

SAP Spartacus如何为不同的environment设置不同的baseUrl

SAP 如何 设置 不同 Spartacus environment
2023-09-14 09:02:54 时间

这里说的不同的environment意思是指Dev,QA和Prod这些environment.

Currently in the build job, SAP Commerce Cloud always run ng build command which always pick the default app.module.ts irrespective of maintaining this property in environment specific basis, hence all environments will have one environment’s OCC base urls which is not correct.

这个链接里有解决方案。

参考这个Github仓库.

只要把app.module.ts里的baseUrl注释掉,则build时, the hosting service will substitute the proper server value.