我可以在本地环境的smartedit预览模式下看到spartacus店面吗? [英] Can I see spartacus storefront in smartedit preview mode of local environment?

查看:84
本文介绍了我可以在本地环境的smartedit预览模式下看到spartacus店面吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CX 2005和更高版本构建了本地开发环境.斯巴达克斯为研究目的.

I built a local development environment with CX 2005 & spartacus for study purpose.

Spartacus店面的工作就像一种魅力. 网址是http://localhost:4200

Spartacus storefront works like a charm. Url is http://localhost:4200

但是在本地smartedit的预览模式下我看不到斯巴达克斯店面. (网址为https://localhost:9002/smartedit.Smartdit> Spartacus Electronics网站>在线>主页)

But I can't see spartacus storefront in local smartedit's preview mode. (Url is https://localhost:9002/smartedit. Smartdit > Spartacus Electronics Site > Online > Home)

所以我意识到iframe src中的spartacus店面的URL以https而不是http开头.

So I realized the spartacus storefront's url in iframe src is start with https not http.

  1. 我可以将此iframe src更改为http吗,还是可以将spartacus服务器启动为http的https intead?

我指的是使用Angular CLI可以在本地通过https服务,并通过https启动spartacus店面,但是stil无法通过smartedit查看spartacus店面.

I refered to Using Angular CLI to serve over https locally and launched spartacus storefront with https, but stil can't see spartacus storefront through smartedit.

  1. 还是我们不需要在smartedit中看到spartacus storefont?

谢谢.

推荐答案

Spartacus网站可以显示在SmartEdit中.请按照此处的步骤进行操作: https://sap.github. io/spartacus-docs/smartEdit-setup-instructions-for-spartacus/

Spartacus site can be displayed in SmartEdit. Follow the procedure here: https://sap.github.io/spartacus-docs/smartEdit-setup-instructions-for-spartacus/

我可以将此iframe src更改为http还是可以启动我的斯巴达克斯 服务器到http的https intead?

Could I change this iframe src to http or Can I launch my spartacus server to https intead of http?

是的,建议使用HTTPS.

Yes, it's recommended to use HTTPS.

这篇关于我可以在本地环境的smartedit预览模式下看到spartacus店面吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆