Angular 6服务器端渲染-502新项目文件夹的糟糕网关NGINX

发布于 2025-01-31 11:40:31 字数 1013 浏览 1 评论 0原文

我们有SAP HYBRIS退回式,该退回台在JS-StoreFront文件夹中托管我们的服务器和角度代码,

目前我们有一个项目,启用了服务器端,并在Subtest.Sustest.JSON配置中完美地工作

    "applications": [
{
  "name": "sampleproject", // name as per package.json
  "path": "SampleProject", // folder name under JS-storefront folder
  "enableSSR":true // flag to turn Server side rendering
      }
  ],
  "nodeVersion": "14"
}

。一个新的文件夹(克隆了旧文件夹),并尝试替换上述配置,但在向后部署后,我们在访问 yourproject/home url时面临502个坏网关问题,但怪异的项目是可访问的如果我们将/index.html 添加到 yourproject/home

在这里输入图像

https://help.sap。 com/docs/sap_commerce_cloud_public_cloud/b2f400d4c0414461a4bb7e115dccd779/63577f67a67347bf947bf9f4765a5385a5385aph33.ht33.ht33.ht33.html -

we have SAP Hybris backoffice which hosts our server and angular code in JS-storefront folder ,

currently we have a project with server side rendering enabled and working perfectly with the help of manifest.json config as below

    "applications": [
{
  "name": "sampleproject", // name as per package.json
  "path": "SampleProject", // folder name under JS-storefront folder
  "enableSSR":true // flag to turn Server side rendering
      }
  ],
  "nodeVersion": "14"
}

For redesigning the old application, we have created a new folder (cloned the old folder) and tried replacing the config as above but post deployment in Backoffice, we are facing 502 BAD gateway issue while accessing the yourproject/home url but weirdly the the project is accessible if we add /index.html to the yourproject/home

enter image description here

https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/b2f400d4c0414461a4bb7e115dccd779/63577f67a67347bf9f4765a5385ead33.html - steps followed for adding new folder

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文