我已经在Node.js上创建了一个应用程序,该应用程序使用LWC组件并将数据从“ Heroku Postgres”获取到该组件,并将数据显示在页面上。
在从“ Heroku Postgres”向组件显示数据时出现错误,并且显示为“ GET http://localhost:3001/api/sessions 504(网关超时)”,并且无法从服务器获得响应。
我能够通过CMD中的Postgres查询来获取数据。
可通过以下网址获取代码:https://github.com/mohit18111995/conference-app
APP:https://shrouded-brook-23913.herokuapp.com/
请让我知道是否需要其他详细信息以找到合适的解决方案