在安装说明中:https://docs.vuestorefront.io/guide/installation/windows.html#installation-of-vue-storefront
前面的第六步说:
图像:因为vue- some api使用imagemagick和一些nodejs命令行绑定,所以很难在localhost/windows机器上运行映像代理。请指出通过更改config/local.json images.baseUrl提供的vue商店到图像代理:
我很难理解Please point out the vue-storefront to image proxy provided是什么意思。
提供了什么图像代理?我从哪里得到要指向的值?
发布于 2019-09-23 12:22:07
baseUrl: 'https://demo.vuestorefront.io/img/'是一个代理,因为它不直接存储图像,而是从提供的param获取URL,然后转换图像并返回转换后的源。
您可以提供普通的vue- same api /img端点,但也可以实现您自己转换的映像提供程序(在这里称为代理),方式与https://github.com/DivanteLtd/vue-storefront-integration-sdk/blob/tutorial/Dynamic%20API%20specification.md#img中描述的方式相同。
通常,您只需将其指向:https://your-vue-storefront-api.domain.com/img/
该文档指向与vue- same面URL相同的域的原因是在https://docs.vuestorefront.io/guide/installation/production-setup.html#nginx中描述的(在这里,它们将/img请求重定向到同一主机上的端口:8080 ),因此在他们的示例中,vue- same前台与vue- same api运行在同一个主机上)。
https://stackoverflow.com/questions/56307510
复制相似问题