SAP Spartacus部署到SAP Commerce Cloud,不同的系统设置不同的OCC Base url
需求
I would like to set environment specific OCC Base URLs
- Development
- Staging
- Production
現在遇到的問題
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.
SAP Commerce Cloud does not provide this option in the specific environment occ base URL for build and deployment
文檔:https://sap.github.io/spartacus-docs/configuring-base-url/
然而,This link does not say How to maintain three different OCC base urls for 3 environments
Dear customer, you can set your js app so that it automatically adds the baseurl. See help topic for hosting javascript apps:
https://help.sap.com/viewer/b2f400d4c0414461a4bb7e115dccd779/v2011/en-US/63577f67a67347bf9f4765a5385ead33.html
In your Spartacus app:
index.html has to have
In app.module.ts, remove or comment out baseUrl
During build, the hosting service will substitute the proper server value.
總結
以上是生活随笔為你收集整理的SAP Spartacus部署到SAP Commerce Cloud,不同的系统设置不同的OCC Base url的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 华为p30语音助手在哪里
- 下一篇: gta5线上拉玛任务