Angular 6服务器端渲染-502新项目文件夹的糟糕网关NGINX
我们有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
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
https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/b2f400d4c0414461a4bb7e115dccd779/63577f67a67347bf9f4765a5385ead33.html - steps followed for adding new folder
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论