首页 > 解决方案 > Vue-storefront-api问题(首页报错)

问题描述

我已经在https://hoversport.no/上设置了 vue-storefront 。

不知道从哪里看,从哪里开始,如何解决这个问题。

预期结果应该是这样的:https ://demo.mage-pwa.io/

任何帮助都非常感谢!

这是 vue-storefront/config 文件 https://github.com/Decntdefalt/vue-storefront-config

这是 vue-storefront-api/config 文件 https://github.com/Decntdefalt/vue-storefront-api-config

标签: apivue.jsvue-storefront

解决方案


根据配置,您的节点应用程序(vue storefront api)似乎未在您的 nginx 中正确配置。https://hoversport.no/api/catalog应该返回一个响应,目前它没有。

这里缺少的是在以下位置提到的 nginx 配置: https ://github.com/DivanteLtd/vue-storefront/blob/master/docs/guide/installation/production-setup.md#nginx

如果它被正确指出,您应该导航到您的 vue-storefront-api 文件夹并运行: node_modules/pm2/bin/pm2 logs以调查 api 节点应用程序的剩余问题。


推荐阅读