Flutter Web App 在本地主机上运行良好,但在服务器上部署时显示空白屏幕

Flutter Web App working fine on localhost but when deploy on server show blank screen

当我 运行 flutter 运行 -d chrome 应用程序工作正常但是当我在 hpanel 服务器上部署时它显示空白屏幕。这是检查控制台显示:

请帮忙。 谢谢。

我明白这个问题。 我没有使用像“your_domain.com/web”这样的网站根目录,所以我必须将 index.html 中的文件夹从“/”重命名为“/web/”。 示例:在 index.html:

到 。