SAP Spartacus部署到SAP Commerce Cloud,不同的系统设置不同的OCC Base url

简介: 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.


目录
相关文章
|
7月前
|
API
使用 Schematics 创建的 Spartacus Storefront,在 index.html 里指定 OCC API url
使用 Schematics 创建的 Spartacus Storefront,在 index.html 里指定 OCC API url
41 0
|
6月前
|
搜索推荐 JavaScript 前端开发
Spartacus 开源项目给 SAP Commerce Cloud Storefront 共享的一些有用的特性介绍
Spartacus 开源项目给 SAP Commerce Cloud Storefront 共享的一些有用的特性介绍
28 0
|
6月前
SAP Commerce Cloud Spartacus UI footer 区域的设计模型
SAP Commerce Cloud Spartacus UI footer 区域的设计模型
26 0
|
7月前
|
Web App开发 JSON JavaScript
SAP Commerce Cloud SmartEdit 打开 Spartacus home page 的网络请求
SAP Commerce Cloud SmartEdit 打开 Spartacus home page 的网络请求
33 0
|
API
使用 Schematics 创建的 Spartacus Storefront,在 index.html 里指定 OCC API url
使用 Schematics 创建的 Spartacus Storefront,在 index.html 里指定 OCC API url
74 0
使用 Schematics 创建的 Spartacus Storefront,在 index.html 里指定 OCC API url
|
前端开发 Java 微服务
Spring Cloud Gateway 动态修改请求参数解决 # URL 编码错误传参问题
Spring Cloud Gateway 动态修改请求参数解决 # URL 编码错误传参问题
Spring Cloud Gateway 动态修改请求参数解决 # URL 编码错误传参问题
|
资源调度
SAP Commerce Cloud Spartacus UI 4.0.1 版本的安装
SAP Commerce Cloud Spartacus UI 4.0.1 版本的安装
SAP Commerce Cloud Spartacus UI 4.0.1 版本的安装
如何安装 SAP Commerce Cloud,以便让 SAP Spartacus 使用
如何安装 SAP Commerce Cloud,以便让 SAP Spartacus 使用
如何安装 SAP Commerce Cloud,以便让 SAP Spartacus 使用
|
Web App开发 缓存 前端开发
SAP Commerce Cloud如何针对Spartacus进行安装
SAP Commerce Cloud如何针对Spartacus进行安装
153 0
SAP Commerce Cloud如何针对Spartacus进行安装
|
前端开发 JavaScript 开发工具
如何在 SAP Commerce Cloud Portal 构建和部署 SAP Spartacus Storefront
如何在 SAP Commerce Cloud Portal 构建和部署 SAP Spartacus Storefront
138 0
如何在 SAP Commerce Cloud Portal 构建和部署 SAP Spartacus Storefront

热门文章

最新文章